<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>DAWG Testcases</title>
    <link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/base.css" />
    <link rel="stylesheet" type="text/css" href="tests.css" />
  </head>
  <body>
    <h1>DAWG Testcases</h1>

    <dl>
      <dt>Document Editor</dt>
      <dd><a href="mailto:lee@thefigtrees.net">Lee Feigenbaum</a> &ndash; invited expert</dd>

      <dt>Version:</dt>
      <dd><code>$Revision: 1.6 1008/code></dd>

    </dl>

    <p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> &copy; 2004 <a href="http://www.w3.org/"><acronym title=" World Wide Web Consortium">W3C</acronym></a><sup>&reg;</sup> (<a href="http://www.csail.mit.edu/"><acronym title="Massachusetts Institute of Technology">MIT</acronym></a>,
    <a href="http://www.ercim.org/"><acronym title="European Research Consortium for Informatics and Mathematics">ERCIM</acronym></a>,
    <a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. W3C
    <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>,
    <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">

    trademark</a>, and <a
    href="http://www.w3.org/Consortium/Legal/copyright-documents"> document
    use</a> rules apply.</p>

    <hr title="Separator for header" />

    <p><strong>Abstract.</strong> This document will list the tests used to clarify the <a href="http://www.w3.org/TR/rdf-sparql-query/">SPARQL Query Language for RDF</a>. This document is a product of the <a href="http://www.w3.org/2001/sw/DataAccess/">Data Access Working Group</a>.</p>

    <p>All test materials are licensed under the W3C Software License, <a href="#license">reproduced below</a>.</p>

    <hr />
    <h2>Status</h2>

    <p><strong>Note:</strong> This document updates the <a href=".">original tests page</a>. Please see the <a
    href="README.html">README</a> for information on the test reorganization.
    All new tests are in the <a href="data-r2/">data-r2/ subdirectory</a>,
    and an overview is available on this page. Tests in the <a href="data/">data/
    subdirectory</a> should not be considered up-to-date, even if marked as
    approved.</p>

   <hr />
    <h2>Source files</h2>
    <p>This document is automatically built from the manifest files. Relevant files are:</p>
    <dl>
      <dt>Schema and documentation</dt>
      <dd>
        <ul>
          <li><a href="README">README</a></li>

          <li><a href="result-set.n3">result-set.n3</a></li>
          <li><a href="test-dawg.n3">test-dawg.n3</a></li>
          <li><a href="test-manifest.n3">test-manifest.n3</a></li>
          <li><a href="test-query.n3">test-query.n3</a></li>
        </ul>
      </dd>
      <dt>Archive of all test materials</dt>
      <dd>
        <ul>
          <li><a href="data-r2.tar.gz">data-r2.tar.gz</a></li>
          <li><a href="data-r2.zip">data-r2.zip</a></li>
        </ul>
      </dd>
      <dt>Syntax-test Manifests</dt>

      <dd>
        <ul>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/manifest.ttl">data-r2/syntax-sparql1/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/manifest.ttl">data-r2/syntax-sparql2/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/manifest.ttl">data-r2/syntax-sparql3/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql4/manifest.ttl">data-r2/syntax-sparql4/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql5/manifest.ttl">data-r2/syntax-sparql5/manifest.ttl</a></li>
        </ul>
      </dd>
      <dt>Evaluation-test Manifests</dt>
      <dd>
        <ul>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/manifest.ttl">data-r2/algebra/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/ask/manifest.ttl">data-r2/ask/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/manifest.ttl">data-r2/basic/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/bnode-coreference/manifest.ttl">data-r2/bnode-coreference/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/manifest.ttl">data-r2/boolean-effective-value/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/bound/manifest.ttl">data-r2/bound/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/manifest.ttl">data-r2/cast/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/construct/manifest.ttl">data-r2/construct/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/manifest.ttl">data-r2/dataset/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/manifest.ttl">data-r2/distinct/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/manifest.ttl">data-r2/expr-builtin/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/manifest.ttl">data-r2/expr-equals/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/manifest.ttl">data-r2/expr-ops/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/manifest.ttl">data-r2/graph/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/i18n/manifest.ttl">data-r2/i18n/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/manifest.ttl">data-r2/open-world/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional-filter/manifest.ttl">data-r2/optional-filter/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/manifest.ttl">data-r2/optional/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/reduced/manifest.ttl">data-r2/reduced/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/regex/manifest.ttl">data-r2/regex/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/manifest.ttl">data-r2/solution-seq/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/manifest.ttl">data-r2/sort/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/triple-match/manifest.ttl">data-r2/triple-match/manifest.ttl</a></li>
<li><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/manifest.ttl">data-r2/type-promotion/manifest.ttl</a></li>
        </ul>
      </dd>
      <dt>Source Archives</dt>
      <dd><i>Not yet available</i></dd>
    </dl>
    <hr/>
    <h2>Contents</h2>
    <h3>Syntax Tests</h3>
    <dl>
<dt><a href="#syntax-basic-01">syntax-basic-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-basic-02">syntax-basic-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-basic-03">syntax-basic-03.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-basic-04">syntax-basic-04.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-basic-05">syntax-basic-05.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-basic-06">syntax-basic-06.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-bnodes-01">syntax-bnodes-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-bnodes-02">syntax-bnodes-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-bnodes-03">syntax-bnodes-03.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-bnodes-04">syntax-bnodes-04.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-bnodes-05">syntax-bnodes-05.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-expr-01">syntax-expr-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-expr-02">syntax-expr-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-expr-03">syntax-expr-03.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-expr-04">syntax-expr-04.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-expr-05">syntax-expr-05.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-forms-01">syntax-forms-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-forms-02">syntax-forms-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-limit-offset-01">syntax-limit-offset-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-limit-offset-02">syntax-limit-offset-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-limit-offset-03">syntax-limit-offset-03.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-limit-offset-04">syntax-limit-offset-04.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lists-01">syntax-lists-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lists-02">syntax-lists-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lists-03">syntax-lists-03.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lists-04">syntax-lists-04.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lists-05">syntax-lists-05.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lit-01">syntax-lit-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lit-02">syntax-lit-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lit-03">syntax-lit-03.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lit-04">syntax-lit-04.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lit-05">syntax-lit-05.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lit-06">syntax-lit-06.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lit-07">syntax-lit-07.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lit-08">syntax-lit-08.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lit-09">syntax-lit-09.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lit-10">syntax-lit-10.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lit-11">syntax-lit-11.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lit-12">syntax-lit-12.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lit-13">syntax-lit-13.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lit-14">syntax-lit-14.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lit-15">syntax-lit-15.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lit-16">syntax-lit-16.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lit-17">syntax-lit-17.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lit-18">syntax-lit-18.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lit-19">syntax-lit-19.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lit-20">syntax-lit-20.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-order-01">syntax-order-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-order-02">syntax-order-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-order-03">syntax-order-03.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-order-04">syntax-order-04.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-order-05">syntax-order-05.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-order-06">syntax-order-06.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-order-07">syntax-order-07.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-pat-01">syntax-pat-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">Approved</a></dd>
<dt><a href="#syntax-pat-02">syntax-pat-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">Approved</a></dd>
<dt><a href="#syntax-pat-03">syntax-pat-03.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">Approved</a></dd>
<dt><a href="#syntax-pat-04">syntax-pat-04.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">Approved</a></dd>
<dt><a href="#syntax-qname-01">syntax-qname-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-qname-02">syntax-qname-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-qname-03">syntax-qname-03.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-qname-04">syntax-qname-04.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-qname-05">syntax-qname-05.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-qname-06">syntax-qname-06.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-qname-07">syntax-qname-07.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-qname-08">syntax-qname-08.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-reduced-01">syntax-reduced-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007OctDec/att-0069/13-dawg-minutes.html">Approved</a></dd>
<dt><a href="#syntax-reduced-02">syntax-reduced-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007OctDec/att-0069/13-dawg-minutes.html">Approved</a></dd>
<dt><a href="#syntax-struct-01">syntax-struct-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-struct-02">syntax-struct-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-struct-03">syntax-struct-03.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-struct-05">syntax-struct-05.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-struct-06">syntax-struct-06.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-struct-07">syntax-struct-07.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-struct-08">syntax-struct-08.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-struct-09">syntax-struct-09.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-struct-10">syntax-struct-10.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-struct-11">syntax-struct-11.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-struct-12">syntax-struct-12.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-struct-13">syntax-struct-13.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-struct-14">syntax-struct-14.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-union-01">syntax-union-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-union-02">syntax-union-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-bnode-01">syntax-bnode-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-bnode-02">syntax-bnode-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-bnode-03">syntax-bnode-03.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-dataset-01">syntax-dataset-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-dataset-02">syntax-dataset-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-dataset-03">syntax-dataset-03.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-dataset-04">syntax-dataset-04.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-esc-01">syntax-esc-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-esc-02">syntax-esc-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-esc-03">syntax-esc-03.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-esc-04">syntax-esc-04.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-esc-05">syntax-esc-05.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-form-ask-02">syntax-form-ask-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-form-construct01">syntax-form-construct01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-form-construct02">syntax-form-construct02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-form-construct03">syntax-form-construct03.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-form-construct04">syntax-form-construct04.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-form-construct06">syntax-form-construct06.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-form-describe01">syntax-form-describe01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-form-describe02">syntax-form-describe02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-form-select-01">syntax-form-select-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-form-select-02">syntax-form-select-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-function-01">syntax-function-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-function-02">syntax-function-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-function-03">syntax-function-03.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-function-04">syntax-function-04.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-general-01">syntax-general-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-general-02">syntax-general-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-general-03">syntax-general-03.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-general-04">syntax-general-04.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-general-05">syntax-general-05.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-general-06">syntax-general-06.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-general-07">syntax-general-07.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-general-08">syntax-general-08.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-general-09">syntax-general-09.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-general-10">syntax-general-10.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-general-11">syntax-general-11.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-general-12">syntax-general-12.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-general-13">syntax-general-13.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-general-14">syntax-general-14.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-graph-01">syntax-graph-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-graph-02">syntax-graph-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-graph-03">syntax-graph-03.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-graph-04">syntax-graph-04.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-graph-05">syntax-graph-05.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-keywords-01">syntax-keywords-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-keywords-02">syntax-keywords-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-keywords-03">syntax-keywords-03.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lists-01">syntax-lists-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lists-02">syntax-lists-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lists-03">syntax-lists-03.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lists-04">syntax-lists-04.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syntax-lists-05">syntax-lists-05.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#blabel-cross-filter">syn-blabel-cross-filter</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0012/2007-04-10-dawg-minutes.html#item06">Approved</a></dd>
<dt><a href="#blabel-cross-graph-bad">syn-blabel-cross-graph-bad</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0012/2007-04-10-dawg-minutes.html#item06">Approved</a></dd>
<dt><a href="#blabel-cross-optional-bad">syn-blabel-cross-optional-bad</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">Approved</a></dd>
<dt><a href="#blabel-cross-union-bad">syn-blabel-cross-union-bad</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">Approved</a></dd>
<dt><a href="#bnode-dot">syn-bad-bnode-dot.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#bnodes-missing-pvalues-01">syn-bad-bnodes-missing-pvalues-01.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#bnodes-missing-pvalues-02">syn-bad-bnodes-missing-pvalues-02.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#empty-optional-01">syn-bad-empty-optional-01.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#empty-optional-02">syn-bad-empty-optional-02.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#filter-missing-parens">syn-bad-filter-missing-parens.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#lone-list">syn-bad-lone-list.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#lone-node">syn-bad-lone-node.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-01">syn-01.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-02">syn-02.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-03">syn-03.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-04">syn-04.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-05">syn-05.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-06">syn-06.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-07">syn-07.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-08">syn-08.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-01">syn-bad-01.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-02">syn-bad-02.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-03">syn-bad-03.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-04">syn-bad-04.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-05">syn-bad-05.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-06">syn-bad-06.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-07">syn-bad-07.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-08">syn-bad-08.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-09">syn-bad-09.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-10">syn-bad-10.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-11">syn-bad-11.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-12">syn-bad-12.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-13">syn-bad-13.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-14">syn-bad-14.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-15">syn-bad-15.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-16">syn-bad-16.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-17">syn-bad-17.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-18">syn-bad-18.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-19">syn-bad-19.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-20">syn-bad-20.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-21">syn-bad-21.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-22">syn-bad-22.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-23">syn-bad-23.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-24">syn-bad-24.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-25">syn-bad-25.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-26">syn-bad-26.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">Approved</a></dd>
<dt><a href="#syn-bad-27">syn-bad-27.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-28">syn-bad-28.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-29">syn-bad-29.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-30">syn-bad-30.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-bad-31">syn-bad-31.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">Approved</a></dd>
<dt><a href="#syn-09">syn-09.rq</a></dt>
<dd><a href="http://www.w3.org/2007/02/13-dawg-minutes.html">Approved</a></dd>
<dt><a href="#syn-10">syn-10.rq</a></dt>
<dd><a href="http://www.w3.org/2007/02/13-dawg-minutes.html">Approved</a></dd>
<dt><a href="#syn-11">syn-11.rq</a></dt>
<dd><a href="http://www.w3.org/2007/02/13-dawg-minutes.html">Approved</a></dd>
<dt><a href="#syn-bad-34">syn-bad-34.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://www.w3.org/2007/02/13-dawg-minutes.html">Approved</a></dd>
<dt><a href="#syn-bad-35">syn-bad-35.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://www.w3.org/2007/02/13-dawg-minutes.html">Approved</a></dd>
<dt><a href="#syn-bad-36">syn-bad-36.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://www.w3.org/2007/02/13-dawg-minutes.html">Approved</a></dd>
<dt><a href="#syn-bad-37">syn-bad-37.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://www.w3.org/2007/02/13-dawg-minutes.html">Approved</a></dd>
<dt><a href="#syn-bad-38">syn-bad-38.rq</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://www.w3.org/2007/02/13-dawg-minutes.html">Approved</a></dd>
<dt><a href="#syn-bad-GRAPH-breaks-BGP">syn-bad-GRAPH-breaks-BGP</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0063/29-dawg-minutes.htm">Approved</a></dd>
<dd>bad: re-used BNode label after GRAPH</dd>
<dt><a href="#syn-bad-OPT-breaks-BGP">syn-bad-OPT-breaks-BGP</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0063/29-dawg-minutes.htm">Approved</a></dd>
<dd>bad: re-used BNode label after OPTIONAL</dd>
<dt><a href="#syn-bad-UNION-breaks-BGP">syn-bad-UNION-breaks-BGP</a> - negative syntax test, should fail to parse</dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">Approved</a></dd>
<dd>bad: re-used BNode label after UNION</dd>
<dt><a href="#syn-leading-digits-in-prefixed-names">syn-leading-digits-in-prefixed-names.rq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0063/29-dawg-minutes.htm">Approved</a></dd>
    </dl>
    <h3>Evaluation Tests</h3>
    <dl>
<dt><a href="#filter-nested-1">Filter-nested - 1</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>A FILTER is in scope for variables bound at the same level of the query tree</dd>
<dt><a href="#filter-nested-2">Filter-nested - 2</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>A FILTER in a group { ... } cannot see variables bound outside that group</dd>
<dt><a href="#filter-place-1">Filter-placement - 1</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>FILTER placed after the triple pattern that contains the variable tested</dd>
<dt><a href="#filter-place-2">Filter-placement - 2</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>FILTERs are scoped to the nearest enclosing group - placement within that group does not matter</dd>
<dt><a href="#filter-place-3">Filter-placement - 3</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>FILTERs are scoped to the nearest enclosing group - placement within that group does not matter</dd>
<dt><a href="#filter-scope-1">Filter-scope - 1</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>FILTERs in an OPTIONAL do not extend to variables bound outside of the LeftJoin(...) operation</dd>
<dt><a href="#join-combo-1">Join operator with OPTs, BGPs, and UNIONs</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html">Approved</a></dd>
<dd>Tests nested combination of Join with a BGP / OPT and a BGP / UNION</dd>
<dt><a href="#join-combo-2">Join operator with Graph and Union</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html">Approved</a></dd>
<dd>Tests combination of Join operator with Graph on LHS and Union on RHS</dd>
<dt><a href="#join-scope-1">Join scope - 1</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>Variables have query scope.</dd>
<dt><a href="#nested-opt-1">Nested Optionals - 1</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>Nested-optionals with a shared variable that does not appear in the middle pattern (a not well-formed query pattern as per "Semantics and Complexity" of SPARQL</dd>
<dt><a href="#nested-opt-2">Nested Optionals - 2</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>OPTIONALs parse in a left-associative manner</dd>
<dt><a href="#opt-filter-1">Optional-filter - 1</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>A FILTER inside an OPTIONAL can reference a variable bound in the required part of the OPTIONAL</dd>
<dt><a href="#opt-filter-2">Optional-filter - 2 filters</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>FILTERs inside an OPTIONAL can refer to variables from both the required and optional parts of the construct.</dd>
<dt><a href="#opt-filter-3">Optional-filter - scope of variable</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>FILTERs in an OPTIONAL do not extend to variables bound outside of the LeftJoin(...) operation</dd>
<dt><a href="#ask-1">ASK-1 (SPARQL XML results)</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#ask-4">ASK-4 (SPARQL XML results)</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#ask-7">ASK-7 (SPARQL XML results)</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#ask-8">ASK-8 (SPARQL XML results)</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">Approved</a></dd>
<dt><a href="#base-prefix-1">Basic - Prefix/Base 1</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#base-prefix-2">Basic - Prefix/Base 2</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#base-prefix-3">Basic - Prefix/Base 3</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#base-prefix-4">Basic - Prefix/Base 4</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#base-prefix-5">Basic - Prefix/Base 5</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#bgp-no-match">Non-matching triple pattern</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">Approved</a></dd>
<dd>Patterns not in data don't match</dd>
<dt><a href="#list-1">Basic - List 1</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#list-2">Basic - List 2</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#list-3">Basic - List 3</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#list-4">Basic - List 4</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#prefix-name-1">Prefix name 1</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">Approved</a></dd>
<dd>No local name - foo:</dd>
<dt><a href="#quotes-1">Basic - Quotes 1</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#quotes-2">Basic - Quotes 2</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#quotes-3">Basic - Quotes 3</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#quotes-4">Basic - Quotes 4</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#spoo-1">Basic graph pattern - spoo</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dd>Test the :x :y :o1, :o2 construct</dd>
<dt><a href="#term-1">Basic - Term 1</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#term-2">Basic - Term 2</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#term-3">Basic - Term 3</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#term-4">Basic - Term 4</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#term-5">Basic - Term 5</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#term-6">Basic - Term 6</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#term-7">Basic - Term 7</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#term-8">Basic - Term 8</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#term-9">Basic - Term 9</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#var-1">Basic - Var 1</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#var-2">Basic - Var 2</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#dawg-bnode-coref-001">dawg-bnode-coreference</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">Approved</a></dd>
<dd>Query results must maintain bnode co-references in the dataset</dd>
<dt><a href="#dawg-bev-1">Test 'boolean effective value' - true</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>Non-zero numerics, non-empty strings, and the true boolean have an EBV of true</dd>
<dt><a href="#dawg-bev-2">Test 'boolean effective value' - false</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>Zero-valued numerics, the empty string, and the false boolean have an EBV of false</dd>
<dt><a href="#dawg-bev-3">Test 'boolean effective value' - &&</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>The && operator takes the EBV of its operands</dd>
<dt><a href="#dawg-bev-4">Test 'boolean effective value' - ||</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>The || operator takes the EBV of its operands</dd>
<dt><a href="#dawg-bev-5">Test 'boolean effective value' - optional</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>The EBV of an unbound value  or a literal with an unknown datatype is a type error, which eliminates the solution in question</dd>
<dt><a href="#dawg-bev-6">Test 'boolean effective value' - unknown types</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>Negating a type error is still a type error</dd>
<dt><a href="#dawg-boolean-literal">Test literal 'true'</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">Approved</a></dd>
<dt><a href="#dawg-bound-query-001">dawg-bound-query-001</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">Approved</a></dd>
<dd>BOUND test case.</dd>
<dt><a href="#cast-bool">Cast to xsd:boolean</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">Approved</a></dd>
<dt><a href="#cast-dT">Cast to xsd:dateTime</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">Approved</a></dd>
<dt><a href="#cast-dbl">Cast to xsd:double</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">Approved</a></dd>
<dt><a href="#cast-dec">Cast to xsd:decimal</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">Approved</a></dd>
<dt><a href="#cast-flt">Cast to xsd:float</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">Approved</a></dd>
<dt><a href="#cast-int">Cast to xsd:integer</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">Approved</a></dd>
<dt><a href="#cast-str">Cast to xsd:string</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">Approved</a></dd>
<dt><a href="#construct-1">dawg-construct-identity</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Graph equivalent result graph</dd>
<dt><a href="#construct-2">dawg-construct-subgraph</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Result subgraph of original graph</dd>
<dt><a href="#construct-3">dawg-construct-reification-1</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Reification of the default graph</dd>
<dt><a href="#construct-4">dawg-construct-reification-2</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Reification of the default graph</dd>
<dt><a href="#construct-5">dawg-construct-optional</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Reification of the default graph</dd>
<dt><a href="#dawg-dataset-01">dataset-01</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Data: default dataset / Query: default dataset</dd>
<dt><a href="#dawg-dataset-02">dataset-02</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Data: named dataset / Query: default dataset</dd>
<dt><a href="#dawg-dataset-03">dataset-03</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Data: named dataset / Query: named dataset dataset</dd>
<dt><a href="#dawg-dataset-04">dataset-04</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Data: named dataset / Query: default dataset</dd>
<dt><a href="#dawg-dataset-05">dataset-05</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Data: default and named / Query: default dataset</dd>
<dt><a href="#dawg-dataset-06">dataset-06</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Data: default and named / Query: named dataset</dd>
<dt><a href="#dawg-dataset-07">dataset-07</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Data: default and named / Query: all data by UNION</dd>
<dt><a href="#dawg-dataset-08">dataset-08</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Data: default and named / Query: common subjects</dd>
<dt><a href="#dawg-dataset-09">dataset-09</a></dt>
<dd>Data: default and named (bnodes) / Query: common subjects</dd>
<dt><a href="#dawg-dataset-09b">dataset-09b</a></dt>
<dd><a href="http://www.w3.org/2007/10/09-dawg-minutes.html">Approved</a></dd>
<dd>Data: default and named (bnodes) / Query: common subjects</dd>
<dt><a href="#dawg-dataset-10">dataset-10</a></dt>
<dd>Data: default and named (same data, with bnodes) / Query: common subjects</dd>
<dt><a href="#dawg-dataset-10b">dataset-10b</a></dt>
<dd><a href="http://www.w3.org/2007/10/09-dawg-minutes.html">Approved</a></dd>
<dd>Data: default and named (same data, with bnodes) / Query: common subjects</dd>
<dt><a href="#dawg-dataset-11">dataset-11</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">Approved</a></dd>
<dd>Data: default and named (several) / Query: get everything</dd>
<dt><a href="#dawg-dataset-12">dataset-12</a></dt>
<dd>Data: default (several) and named (several) / Query: get everything</dd>
<dt><a href="#dawg-dataset-12b">dataset-12b</a></dt>
<dd><a href="http://www.w3.org/2007/10/09-dawg-minutes.html">Approved</a></dd>
<dd>Data: default (several) and named (several) / Query: get everything</dd>
<dt><a href="#distinct-1">Numbers: Distinct</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dt><a href="#distinct-2">Strings: Distinct</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dt><a href="#distinct-3">Nodes: Distinct</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dt><a href="#distinct-4">Opt: Distinct</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dt><a href="#distinct-9">All: Distinct</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dt><a href="#distinct-star-1">SELECT DISTINCT *</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">Approved</a></dd>
<dt><a href="#no-distinct-1">Numbers: No distinct</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dt><a href="#no-distinct-2">Strings: No distinct</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dt><a href="#no-distinct-3">Nodes: No distinct</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dt><a href="#no-distinct-4">Opt: No distinct</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dt><a href="#no-distinct-9">All: No distinct</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dt><a href="#reduced-1">SELECT REDUCED *</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007OctDec/att-0069/13-dawg-minutes.html">Approved</a></dd>
<dt><a href="#reduced-2">SELECT REDUCED ?x with strings</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007OctDec/att-0069/13-dawg-minutes.html">Approved</a></dd>
<dt><a href="#dawg-datatype-1">datatype-1</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">Approved</a></dd>
<dt><a href="#dawg-datatype-2">datatype-2 : Literals with a datatype</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">Approved</a></dd>
<dd>updated from original test case: eliminated ordering from test</dd>
<dt><a href="#dawg-datatype-3">datatype-3 : Literals with a datatype of xsd:string</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">Approved</a></dd>
<dd>updated from original test case: eliminated ordering from test</dd>
<dt><a href="#dawg-isBlank-1">isBlank-1</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">Approved</a></dd>
<dt><a href="#dawg-isIRI-1">isIRI-1</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">Approved</a></dd>
<dt><a href="#dawg-isLiteral-1">isLiteral</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">Approved</a></dd>
<dt><a href="#dawg-isURI-1">isURI-1</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">Approved</a></dd>
<dt><a href="#dawg-lang-1">lang-1 : Literals with a lang tag of some kind</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">Approved</a></dd>
<dd>updated from original test case: eliminated ordering from test</dd>
<dt><a href="#dawg-lang-2">lang-2 : Literals with a lang tag of ''</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">Approved</a></dd>
<dd>updated from original test case: eliminated ordering from test</dd>
<dt><a href="#dawg-lang-3">lang-3 : Graph matching with lang tag being a different case</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">Approved</a></dd>
<dd>updated from original test case: eliminated ordering from test</dd>
<dt><a href="#dawg-langMatches-1">LangMatches-1</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">Approved</a></dd>
<dd>langMatches(lang(?v), 'en-GB') matches 'abc'@en-gb</dd>
<dt><a href="#dawg-langMatches-2">LangMatches-2</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">Approved</a></dd>
<dd>langMatches(lang(?v), 'en') matches 'abc'@en, 'abc'@en-gb</dd>
<dt><a href="#dawg-langMatches-3">LangMatches-3</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">Approved</a></dd>
<dd>langMatches(lang(?v), '*') matches 'abc'@en, 'abc'@en-gb, 'abc'@fr</dd>
<dt><a href="#dawg-langMatches-4">LangMatches-4</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">Approved</a></dd>
<dd>! langMatches(lang(?v), '*') matches 'abc'</dd>
<dt><a href="#dawg-langMatches-basic">LangMatches-basic</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">Approved</a></dd>
<dd>the basic range 'de-de' does not match 'de-Latn-de'</dd>
<dt><a href="#dawg-str-1">str-1</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">Approved</a></dd>
<dt><a href="#dawg-str-2">str-2</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">Approved</a></dd>
<dt><a href="#dawg-str-3">str-3</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">Approved</a></dd>
<dt><a href="#dawg-str-4">str-4</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">Approved</a></dd>
<dt><a href="#lang-case-insensitive-eq">lang-case-insensitive-eq</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>'xyz'@en = 'xyz'@EN</dd>
<dt><a href="#lang-case-insensitive-ne">lang-case-insensitive-ne</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>'xyz'@en != 'xyz'@EN</dd>
<dt><a href="#sameTerm-eq">sameTerm-eq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">Approved</a></dd>
<dd>sameTerm(?v1, ?v2) && ?v1 = ?v2</dd>
<dt><a href="#sameTerm-not-eq">sameTerm-not-eq</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">Approved</a></dd>
<dd>!sameTerm(?v1, ?v2) && ?v1 = ?v2</dd>
<dt><a href="#sameTerm-simple">sameTerm-simple</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">Approved</a></dd>
<dd>sameTerm(?v1, ?v2)</dd>
<dt><a href="#eq-1">Equality 1-1</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>= in FILTER expressions is value equality</dd>
<dt><a href="#eq-2">Equality 1-2</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>= in FILTER expressions is value equality</dd>
<dt><a href="#eq-2-1">Equality - 2 var - test equals</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>= in FILTER is value equality</dd>
<dt><a href="#eq-2-2">Equality - 2 var - test not equals </a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>!= in FILTER is value inequality</dd>
<dt><a href="#eq-3">Equality 1-3</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>Numerics are not value-equivalent to plain literals</dd>
<dt><a href="#eq-4">Equality 1-4</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>= compares plain literals and unknown types with the same lexical form as false</dd>
<dt><a href="#eq-5">Equality 1-5</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>= on IRI terms</dd>
<dt><a href="#eq-graph-1">Equality 1-1 -- graph</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>Graph pattern matching matches exact terms, not values</dd>
<dt><a href="#eq-graph-2">Equality 1-2 -- graph</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>Graph pattern matching matches exact terms, not values</dd>
<dt><a href="#eq-graph-3">Equality 1-3 -- graph</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>Graph pattern matching matches exact terms, not values</dd>
<dt><a href="#eq-graph-4">Equality 1-4 -- graph</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>Graph pattern matching matches exact terms, not values</dd>
<dt><a href="#eq-graph-5">Equality 1-5 -- graph</a></dt>
<dd><a href="http://www.w3.org/2007/06/19-dawg-minutes.html">Approved</a></dd>
<dd>Graph pattern matching matches exact terms, not values</dd>
<dt><a href="#ge-1">Greater-than or equals</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">Approved</a></dd>
<dd>>= in FILTER expressions</dd>
<dt><a href="#le-1">Less-than or equals</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">Approved</a></dd>
<dd><= in FILTER expressions</dd>
<dt><a href="#minus-1">Subtraction</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">Approved</a></dd>
<dd>A - B in FILTER expressions</dd>
<dt><a href="#mul-1">Multiplication</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">Approved</a></dd>
<dd>A * B in FILTER expressions</dd>
<dt><a href="#plus-1">Addition</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">Approved</a></dd>
<dd>A + B in FILTER expressions</dd>
<dt><a href="#unminus-1">Unary Minus</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">Approved</a></dd>
<dd>-A in FILTER expressions</dd>
<dt><a href="#unplus-1">Unary Plusn</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">Approved</a></dd>
<dd>+A in FILTER expressions</dd>
<dt><a href="#dawg-graph-01">graph-01</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Data: default graph / Query: default graph</dd>
<dt><a href="#dawg-graph-02">graph-02</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Data: named graph / Query: default graph</dd>
<dt><a href="#dawg-graph-03">graph-03</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Data: named graph / Query: named graph graph</dd>
<dt><a href="#dawg-graph-04">graph-04</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Data: named graph / Query: default graph</dd>
<dt><a href="#dawg-graph-05">graph-05</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Data: default and named / Query: default graph</dd>
<dt><a href="#dawg-graph-06">graph-06</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Data: default and named / Query: named graph</dd>
<dt><a href="#dawg-graph-07">graph-07</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Data: default and named / Query: all data by UNION</dd>
<dt><a href="#dawg-graph-08">graph-08</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Data: default and named / Query: common subjects</dd>
<dt><a href="#dawg-graph-09">graph-09</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Data: default and named (bnodes) / Query: common subjects</dd>
<dt><a href="#dawg-graph-10">graph-10</a></dt>
<dd>Data: default and named (same data, with bnodes) / Query: common subjects</dd>
<dt><a href="#dawg-graph-10b">graph-10b</a></dt>
<dd><a href="http://www.w3.org/2007/10/09-dawg-minutes.html">Approved</a></dd>
<dd>Data: default and named (same data, with bnodes) / Query: common subjects</dd>
<dt><a href="#dawg-graph-11">graph-11</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Data: default and named (several) / Query: get everything</dd>
<dt><a href="#kanji-1">kanji-01</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dt><a href="#kanji-2">kanji-02</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dt><a href="#normalization-1">normalization-01</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">Approved</a></dd>
<dt><a href="#normalization-2">normalization-02</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Example 1 from http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JulSep/0096</dd>
<dt><a href="#normalization-3">normalization-03</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">Approved</a></dd>
<dd>Example 2 from http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JulSep/0096</dd>
<dt><a href="#date-1">date-1</a></dt>
<dd>Added type : xsd:date '='</dd>
<dt><a href="#date-2">date-2</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>Added type : xsd:date '!='</dd>
<dt><a href="#date-3">date-3</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>Added type : xsd:date '>'</dd>
<dt><a href="#date-4">date-4</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>xsd:date ORDER BY</dd>
<dt><a href="#open-cmp-01">open-cmp-01</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>Find things that compare with < or ></dd>
<dt><a href="#open-cmp-02">open-cmp-02</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">Approved</a></dd>
<dd>Find things that compare with <= and ></dd>
<dt><a href="#open-eq-01">open-eq-01</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>graph match - no lexical form in data (assumes no value matching)</dd>
<dt><a href="#open-eq-02">open-eq-02</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>graph match - unknown type</dd>
<dt><a href="#open-eq-03">open-eq-03</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>Filter(?v=1)</dd>
<dt><a href="#open-eq-04">open-eq-04</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>Filter(?v!=1)</dd>
<dt><a href="#open-eq-05">open-eq-05</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>FILTER(?v = unknown type)</dd>
<dt><a href="#open-eq-06">open-eq-06</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>FILTER(?v != unknown type)</dd>
<dt><a href="#open-eq-07">open-eq-07</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>Test of '=' </dd>
<dt><a href="#open-eq-08">open-eq-08</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>Test of '!='</dd>
<dt><a href="#open-eq-09">open-eq-09</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>Test of '='</dd>
<dt><a href="#open-eq-10">open-eq-10</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>Test of '!='</dd>
<dt><a href="#open-eq-11">open-eq-11</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>test of '=' || '!='</dd>
<dt><a href="#open-eq-12">open-eq-12</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>find pairs that don't value-compare</dd>
<dt><a href="#dawg-optional-filter-001">OPTIONAL-FILTER</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>FILTER inside an OPTIONAL does not block an entire solution</dd>
<dt><a href="#dawg-optional-filter-002">OPTIONAL - Outer FILTER</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>FILTER outside an OPTIONAL tests bound and unbound variables</dd>
<dt><a href="#dawg-optional-filter-003">OPTIONAL - Outer FILTER with BOUND</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">Approved</a></dd>
<dd>Use !bound to only run outer FILTERs against variables bound in an OPTIONAL</dd>
<dt><a href="#dawg-optional-filter-004">OPTIONAL - Inner FILTER with negative EBV for outer variables</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007OctDec/att-0006/02-dawg-minutes.html">Approved</a></dd>
<dd>FILTER inside an OPTIONAL does not corrupt the entire solution</dd>
<dt><a href="#dawg-optional-filter-005-not-simplified">dawg-optional-filter-005-not-simplified</a></dt>
<dd>Double curly braces do NOT get simplified to single curly braces early on, before filters are scoped</dd>
<dt><a href="#dawg-optional-filter-005-simplified">dawg-optional-filter-005-simplified</a></dt>
<dd>Double curly braces get simplified to single curly braces early on, before filters are scoped</dd>
<dt><a href="#dawg-optional-001">One optional clause</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">Approved</a></dd>
<dd>One optional clause</dd>
<dt><a href="#dawg-optional-002">Two optional clauses</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">Approved</a></dd>
<dd>One optional clause</dd>
<dt><a href="#dawg-optional-complex-1">Complex optional semantics: 1</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html">Approved</a></dd>
<dd>Complex optional: LeftJoin(LeftJoin(BGP(..),{..}),Join(BGP(..),Union(..,..)))</dd>
<dt><a href="#dawg-optional-complex-2">Complex optional semantics: 2</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html">Approved</a></dd>
<dd>Complex optional: LeftJoin(Join(BGP(..),Graph(var,{..})),Union(..,..))</dd>
<dt><a href="#dawg-optional-complex-3">Complex optional semantics: 3</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html">Approved</a></dd>
<dd>Complex optional: LeftJoin(Join(BGP(..),Graph(var,{..})),LeftJoin(BGP(..),{..}))</dd>
<dt><a href="#dawg-optional-complex-4">Complex optional semantics: 4</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html">Approved</a></dd>
<dd>Complex optional: LeftJoin(Join(BGP(..),Union(..,..)),Join(BGP(..),Graph(varOrIRI,{..})))</dd>
<dt><a href="#dawg-union-001">Union is not optional</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">Approved</a></dd>
<dd>Union is not optional</dd>
<dt><a href="#dawg-regex-001">regex-query-001</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0029.html">Approved</a></dd>
<dd>Simple unanchored match test</dd>
<dt><a href="#dawg-regex-002">regex-query-002</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0029.html">Approved</a></dd>
<dd>Case insensitive unanchored match test</dd>
<dt><a href="#dawg-regex-003">regex-query-003</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0029.html">Approved</a></dd>
<dd>Use/mention test</dd>
<dt><a href="#dawg-regex-004">regex-query-004</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0029.html">Approved</a></dd>
<dd>str()+URI test</dd>
<dt><a href="#limit-1">Limit 1</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">Approved</a></dd>
<dt><a href="#limit-2">Limit 2</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">Approved</a></dd>
<dt><a href="#limit-3">Limit 3</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">Approved</a></dd>
<dt><a href="#limit-4">Limit 4</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">Approved</a></dd>
<dt><a href="#offset-1">Offset 1</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">Approved</a></dd>
<dt><a href="#offset-2">Offset 2</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">Approved</a></dd>
<dt><a href="#offset-3">Offset 3</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">Approved</a></dd>
<dt><a href="#offset-4">Offset 4</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">Approved</a></dd>
<dt><a href="#slice-1">Slice 1</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">Approved</a></dd>
<dt><a href="#slice-2">Slice 2</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">Approved</a></dd>
<dt><a href="#slice-3">Slice 3</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">Approved</a></dd>
<dt><a href="#slice-4">Slice 4</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">Approved</a></dd>
<dt><a href="#slice-5">Slice 5</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">Approved</a></dd>
<dt><a href="#dawg-sort-1">sort-1</a></dt>
<dd><a href="http://www.w3.org/2007/06/26-dawg-minutes">Approved</a></dd>
<dd>Alphabetic sort (ascending) on untyped literals</dd>
<dt><a href="#dawg-sort-10">sort-10</a></dt>
<dd><a href="http://www.w3.org/2007/06/26-dawg-minutes">Approved</a></dd>
<dd>Alphabetic sort (descending) on datatyped (string) literals</dd>
<dt><a href="#dawg-sort-2">sort-2</a></dt>
<dd><a href="http://www.w3.org/2007/06/26-dawg-minutes">Approved</a></dd>
<dd>Alphabetic sort (descending) on untyped literals</dd>
<dt><a href="#dawg-sort-3">sort-3</a></dt>
<dd><a href="http://www.w3.org/2007/06/26-dawg-minutes">Approved</a></dd>
<dd>Sort on (possibly unbound) URIs</dd>
<dt><a href="#dawg-sort-4">sort-4</a></dt>
<dd><a href="http://www.w3.org/2007/06/26-dawg-minutes">Approved</a></dd>
<dd>Sort on datatyped (integer) literals</dd>
<dt><a href="#dawg-sort-5">sort-5</a></dt>
<dd><a href="http://www.w3.org/2007/06/26-dawg-minutes">Approved</a></dd>
<dd>Sort first on untyped literals (ascending), then on datatyped (integer) literals (descending</dd>
<dt><a href="#dawg-sort-6">sort-6</a></dt>
<dd><a href="http://www.w3.org/2007/06/26-dawg-minutes">Approved</a></dd>
<dd>Sort on mixed result of uris and literals.</dd>
<dt><a href="#dawg-sort-7">sort-7</a></dt>
<dd><a href="http://www.w3.org/2007/06/26-dawg-minutes">Approved</a></dd>
<dd>Sort on comparable mixed typed literals (integer and float)</dd>
<dt><a href="#dawg-sort-8">sort-8</a></dt>
<dd><a href="http://www.w3.org/2007/06/26-dawg-minutes">Approved</a></dd>
<dd>Sort on several mixed values (bnode, uri, literal)</dd>
<dt><a href="#dawg-sort-9">sort-9</a></dt>
<dd><a href="http://www.w3.org/2007/06/26-dawg-minutes">Approved</a></dd>
<dd>Alphabetic sort (ascending) on datatyped (string) literals</dd>
<dt><a href="#dawg-sort-builtin">Builtin sort</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html">Approved</a></dd>
<dd>Sort by a builtin operator</dd>
<dt><a href="#dawg-sort-function">Function sort</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html">Approved</a></dd>
<dd>Sort by function invocation</dd>
<dt><a href="#dawg-sort-numbers">Expression sort</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html">Approved</a></dd>
<dd>Sort by a bracketted expression</dd>
<dt><a href="#dawg-triple-pattern-001">dawg-triple-pattern-001</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JanMar/0358">Approved</a></dd>
<dd>Simple triple match</dd>
<dt><a href="#dawg-triple-pattern-002">dawg-triple-pattern-002</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JanMar/0358">Approved</a></dd>
<dd>Simple triple match</dd>
<dt><a href="#dawg-triple-pattern-003">dawg-triple-pattern-003</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JanMar/0358">Approved</a></dd>
<dd>Simple triple match - repeated variable</dd>
<dt><a href="#dawg-triple-pattern-004">dawg-triple-pattern-004</a></dt>
<dd><a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JanMar/0358">Approved</a></dd>
<dd>Simple triple match - two triples, common variable</dd>
<dt><a href="#type-promotion-01">tP-double-double</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-02">tP-double-float</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-03">tP-double-decimal</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-04">tP-float-float</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-05">tP-float-decimal</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-06">tP-decimal-decimal</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-07">tP-integer-short</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-08">tP-nonPositiveInteger-short</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-09">tP-negativeInteger-short</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-10">tP-long-short</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-11">tP-int-short</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-12">tP-short-short</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-13">tP-byte-short</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-14">tP-nonNegativeInteger-short</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-15">tP-unsignedLong-short</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-16">tP-unsignedInt-short</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-17">tP-unsignedShort-short</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-18">tP-unsignedByte-short</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-19">tP-positiveInteger-short</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-20">tP-short-double</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-21">tP-short-float</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-22">tP-short-decimal</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-23">tP-short-short-fail</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-24">tP-byte-short-fail</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-25">tP-short-long-fail</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-26">tP-short-int-fail</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-27">tP-short-byte-fail</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-28">tP-double-float-fail</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-29">tP-double-decimal-fail</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
<dt><a href="#type-promotion-30">tP-float-decimal-fail</a></dt>
<dd><a href="http://www.w3.org/2007/07/17-dawg-minutes">Approved</a></dd>
<dd>Positive test: product of type promotion within the xsd:decimal type tree.</dd>
    </dl>
    <hr/>
<h2><a name="syntax-basic-01">syntax-basic-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-basic-01.rq">data-r2/syntax-sparql1/syntax-basic-01.rq</a><br/>
<div class="query">
SELECT *
WHERE { }

</div>
<hr/>
<h2><a name="syntax-basic-02">syntax-basic-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-basic-02.rq">data-r2/syntax-sparql1/syntax-basic-02.rq</a><br/>
<div class="query">
SELECT * {}

</div>
<hr/>
<h2><a name="syntax-basic-03">syntax-basic-03.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-basic-03.rq">data-r2/syntax-sparql1/syntax-basic-03.rq</a><br/>
<div class="query">
# No trailing dot
PREFIX : &lt;http://example.org/ns#&gt; 
SELECT *
WHERE { ?x ?y ?z }

</div>
<hr/>
<h2><a name="syntax-basic-04">syntax-basic-04.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-basic-04.rq">data-r2/syntax-sparql1/syntax-basic-04.rq</a><br/>
<div class="query">
# With trailing dot
SELECT *
WHERE { ?x ?y ?z . }

</div>
<hr/>
<h2><a name="syntax-basic-05">syntax-basic-05.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-basic-05.rq">data-r2/syntax-sparql1/syntax-basic-05.rq</a><br/>
<div class="query">
# Two triples : no trailing dot
SELECT *
WHERE { ?x ?y ?z . ?a ?b ?c }

</div>
<hr/>
<h2><a name="syntax-basic-06">syntax-basic-06.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-basic-06.rq">data-r2/syntax-sparql1/syntax-basic-06.rq</a><br/>
<div class="query">
# Two triples : with trailing dot
SELECT *
WHERE { ?x ?y ?z . ?a ?b ?c . }

</div>
<hr/>
<h2><a name="syntax-bnodes-01">syntax-bnodes-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-bnodes-01.rq">data-r2/syntax-sparql1/syntax-bnodes-01.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;
SELECT * WHERE { [:p :q ] }

</div>
<hr/>
<h2><a name="syntax-bnodes-02">syntax-bnodes-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-bnodes-02.rq">data-r2/syntax-sparql1/syntax-bnodes-02.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;
SELECT * WHERE { [] :p :q }

</div>
<hr/>
<h2><a name="syntax-bnodes-03">syntax-bnodes-03.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-bnodes-03.rq">data-r2/syntax-sparql1/syntax-bnodes-03.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;
SELECT * WHERE { [ ?x ?y ] :p [ ?pa ?b ] }

</div>
<hr/>
<h2><a name="syntax-bnodes-04">syntax-bnodes-04.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-bnodes-04.rq">data-r2/syntax-sparql1/syntax-bnodes-04.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt; 
SELECT *
WHERE { [ :p :q ; ] }

</div>
<hr/>
<h2><a name="syntax-bnodes-05">syntax-bnodes-05.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-bnodes-05.rq">data-r2/syntax-sparql1/syntax-bnodes-05.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt; 
SELECT *
WHERE { _:a :p1 :q1 .
        _:a :p2 :q2 .
      }

</div>
<hr/>
<h2><a name="syntax-expr-01">syntax-expr-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-expr-01.rq">data-r2/syntax-sparql1/syntax-expr-01.rq</a><br/>
<div class="query">
SELECT *
WHERE { ?s ?p ?o . FILTER (?o) }

</div>
<hr/>
<h2><a name="syntax-expr-02">syntax-expr-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-expr-02.rq">data-r2/syntax-sparql1/syntax-expr-02.rq</a><br/>
<div class="query">
SELECT *
WHERE { ?s ?p ?o . FILTER REGEX(?o, &quot;foo&quot;) }

</div>
<hr/>
<h2><a name="syntax-expr-03">syntax-expr-03.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-expr-03.rq">data-r2/syntax-sparql1/syntax-expr-03.rq</a><br/>
<div class="query">
SELECT *
WHERE { ?s ?p ?o . FILTER REGEX(?o, &quot;foo&quot;, &quot;i&quot;) }

</div>
<hr/>
<h2><a name="syntax-expr-04">syntax-expr-04.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-expr-04.rq">data-r2/syntax-sparql1/syntax-expr-04.rq</a><br/>
<div class="query">
PREFIX xsd:   &lt;http://www.w3.org/2001/XMLSchema#&gt;
SELECT *
WHERE { ?s ?p ?o . FILTER xsd:integer(?o) }

</div>
<hr/>
<h2><a name="syntax-expr-05">syntax-expr-05.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-expr-05.rq">data-r2/syntax-sparql1/syntax-expr-05.rq</a><br/>
<div class="query">
PREFIX :      &lt;http://example.org/ns#&gt; 
PREFIX xsd:   &lt;http://www.w3.org/2001/XMLSchema#&gt;
SELECT *
WHERE { ?s ?p ?o . FILTER :myFunc(?s,?o) }

</div>
<hr/>
<h2><a name="syntax-forms-01">syntax-forms-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-forms-01.rq">data-r2/syntax-sparql1/syntax-forms-01.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;
SELECT * WHERE { ( [ ?x ?y ] ) :p ( [ ?pa ?b ] 57 ) }

</div>
<hr/>
<h2><a name="syntax-forms-02">syntax-forms-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-forms-02.rq">data-r2/syntax-sparql1/syntax-forms-02.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;
SELECT * WHERE { ( [] [] ) }

</div>
<hr/>
<h2><a name="syntax-limit-offset-01">syntax-limit-offset-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-limit-offset-01.rq">data-r2/syntax-sparql1/syntax-limit-offset-01.rq</a><br/>
<div class="query">
PREFIX :      &lt;http://example.org/ns#&gt; 
SELECT *
{ ?s ?p ?o }
ORDER BY ?o
LIMIT 5

</div>
<hr/>
<h2><a name="syntax-limit-offset-02">syntax-limit-offset-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-limit-offset-02.rq">data-r2/syntax-sparql1/syntax-limit-offset-02.rq</a><br/>
<div class="query">
# LIMIT and OFFSET can be in either order
PREFIX :      &lt;http://example.org/ns#&gt; 
SELECT *
{ ?s ?p ?o }
ORDER BY ?o
LIMIT 5
OFFSET 3

</div>
<hr/>
<h2><a name="syntax-limit-offset-03">syntax-limit-offset-03.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-limit-offset-03.rq">data-r2/syntax-sparql1/syntax-limit-offset-03.rq</a><br/>
<div class="query">
# LIMIT and OFFSET can be in either order
PREFIX :      &lt;http://example.org/ns#&gt; 
SELECT *
{ ?s ?p ?o }
ORDER BY ?o
OFFSET 3
LIMIT 5

</div>
<hr/>
<h2><a name="syntax-limit-offset-04">syntax-limit-offset-04.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-limit-offset-04.rq">data-r2/syntax-sparql1/syntax-limit-offset-04.rq</a><br/>
<div class="query">
PREFIX :      &lt;http://example.org/ns#&gt; 
SELECT *
{ ?s ?p ?o }
ORDER BY ?o
OFFSET 3

</div>
<hr/>
<h2><a name="syntax-lists-01">syntax-lists-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lists-01.rq">data-r2/syntax-sparql1/syntax-lists-01.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt; 
SELECT * WHERE { ( ?x ) :p ?z  }

</div>
<hr/>
<h2><a name="syntax-lists-02">syntax-lists-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lists-02.rq">data-r2/syntax-sparql1/syntax-lists-02.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt; 
SELECT * WHERE { ?x :p ( ?z ) }

</div>
<hr/>
<h2><a name="syntax-lists-03">syntax-lists-03.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lists-03.rq">data-r2/syntax-sparql1/syntax-lists-03.rq</a><br/>
<div class="query">
SELECT * WHERE { ( ?z ) }

</div>
<hr/>
<h2><a name="syntax-lists-04">syntax-lists-04.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lists-04.rq">data-r2/syntax-sparql1/syntax-lists-04.rq</a><br/>
<div class="query">
SELECT * WHERE { ( ( ?z ) ) }

</div>
<hr/>
<h2><a name="syntax-lists-05">syntax-lists-05.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lists-05.rq">data-r2/syntax-sparql1/syntax-lists-05.rq</a><br/>
<div class="query">
SELECT * WHERE { ( ( ) ) }

</div>
<hr/>
<h2><a name="syntax-lit-01">syntax-lit-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lit-01.rq">data-r2/syntax-sparql1/syntax-lit-01.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt; 
SELECT * WHERE { :x :p &quot;x&quot; }

</div>
<hr/>
<h2><a name="syntax-lit-02">syntax-lit-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lit-02.rq">data-r2/syntax-sparql1/syntax-lit-02.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt; 
SELECT * WHERE { :x :p &#39;x&#39; }

</div>
<hr/>
<h2><a name="syntax-lit-03">syntax-lit-03.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lit-03.rq">data-r2/syntax-sparql1/syntax-lit-03.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt; 
SELECT * WHERE { :x :p &quot;x\&quot;y&#39;z&quot; }

</div>
<hr/>
<h2><a name="syntax-lit-04">syntax-lit-04.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lit-04.rq">data-r2/syntax-sparql1/syntax-lit-04.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt; 
SELECT * WHERE { :x :p &#39;x&quot;y\&#39;z&#39; }

</div>
<hr/>
<h2><a name="syntax-lit-05">syntax-lit-05.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lit-05.rq">data-r2/syntax-sparql1/syntax-lit-05.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt; 
SELECT * WHERE { :x :p &quot;x\&quot;&quot; }

</div>
<hr/>
<h2><a name="syntax-lit-06">syntax-lit-06.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lit-06.rq">data-r2/syntax-sparql1/syntax-lit-06.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt; 
SELECT * WHERE { :x :p &#39;x\&#39;&#39; }

</div>
<hr/>
<h2><a name="syntax-lit-07">syntax-lit-07.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lit-07.rq">data-r2/syntax-sparql1/syntax-lit-07.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt; 
SELECT * WHERE { :x :p 123 }

</div>
<hr/>
<h2><a name="syntax-lit-08">syntax-lit-08.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lit-08.rq">data-r2/syntax-sparql1/syntax-lit-08.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt; 
SELECT * WHERE { :x :p 123. . }

</div>
<hr/>
<h2><a name="syntax-lit-09">syntax-lit-09.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lit-09.rq">data-r2/syntax-sparql1/syntax-lit-09.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt; 
SELECT * WHERE { :x :p &quot;&quot;&quot;Long
&quot;&quot;
Literal
&quot;&quot;&quot; }

</div>
<hr/>
<h2><a name="syntax-lit-10">syntax-lit-10.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lit-10.rq">data-r2/syntax-sparql1/syntax-lit-10.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt; 
SELECT * WHERE { :x :p &#39;&#39;&#39;Long
&#39;&#39; &quot;&quot;&quot;
Literal&#39;&#39;&#39; }

</div>
<hr/>
<h2><a name="syntax-lit-11">syntax-lit-11.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lit-11.rq">data-r2/syntax-sparql1/syntax-lit-11.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt; 
SELECT * WHERE { :x :p &quot;&quot;&quot;Long&quot;&quot;\&quot;Literal&quot;&quot;&quot; }

</div>
<hr/>
<h2><a name="syntax-lit-12">syntax-lit-12.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lit-12.rq">data-r2/syntax-sparql1/syntax-lit-12.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt; 
SELECT * WHERE { :x :p &#39;&#39;&#39;Long&#39;&#39;\&#39;Literal&#39;&#39;&#39; }

</div>
<hr/>
<h2><a name="syntax-lit-13">syntax-lit-13.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lit-13.rq">data-r2/syntax-sparql1/syntax-lit-13.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt; 
SELECT * WHERE { :x :p &quot;&quot;&quot;Long\&quot;&quot;&quot;Literal&quot;&quot;&quot; }

</div>
<hr/>
<h2><a name="syntax-lit-14">syntax-lit-14.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lit-14.rq">data-r2/syntax-sparql1/syntax-lit-14.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt; 
SELECT * WHERE { :x :p &#39;&#39;&#39;Long\&#39;&#39;&#39;Literal&#39;&#39;&#39; }

</div>
<hr/>
<h2><a name="syntax-lit-15">syntax-lit-15.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lit-15.rq">data-r2/syntax-sparql1/syntax-lit-15.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt; 
SELECT * WHERE { :x :p &#39;&#39;&#39;Long &#39;&#39; Literal&#39;&#39;&#39; }

</div>
<hr/>
<h2><a name="syntax-lit-16">syntax-lit-16.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lit-16.rq">data-r2/syntax-sparql1/syntax-lit-16.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt; 
SELECT * WHERE { :x :p &#39;&#39;&#39;Long &#39; Literal&#39;&#39;&#39; }

</div>
<hr/>
<h2><a name="syntax-lit-17">syntax-lit-17.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lit-17.rq">data-r2/syntax-sparql1/syntax-lit-17.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt; 
SELECT * WHERE { :x :p &#39;&#39;&#39;Long&#39;&#39;\\Literal with &#39;\\ single quotes &#39;&#39;&#39; }

</div>
<hr/>
<h2><a name="syntax-lit-18">syntax-lit-18.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lit-18.rq">data-r2/syntax-sparql1/syntax-lit-18.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt; 
SELECT * WHERE { :x :p &quot;&quot;&quot;Long &quot;&quot; Literal&quot;&quot;&quot; }

</div>
<hr/>
<h2><a name="syntax-lit-19">syntax-lit-19.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lit-19.rq">data-r2/syntax-sparql1/syntax-lit-19.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt; 
SELECT * WHERE { :x :p &quot;&quot;&quot;Long &quot; Literal&quot;&quot;&quot; }

</div>
<hr/>
<h2><a name="syntax-lit-20">syntax-lit-20.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-lit-20.rq">data-r2/syntax-sparql1/syntax-lit-20.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt; 
SELECT * WHERE { :x :p &quot;&quot;&quot;Long&quot;&quot;\\Literal with &quot;\\ single quotes&quot;&quot;&quot; }

</div>
<hr/>
<h2><a name="syntax-order-01">syntax-order-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-order-01.rq">data-r2/syntax-sparql1/syntax-order-01.rq</a><br/>
<div class="query">
PREFIX :      &lt;http://example.org/ns#&gt; 
SELECT *
{ ?s ?p ?o }
ORDER BY ?o

</div>
<hr/>
<h2><a name="syntax-order-02">syntax-order-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-order-02.rq">data-r2/syntax-sparql1/syntax-order-02.rq</a><br/>
<div class="query">
PREFIX :      &lt;http://example.org/ns#&gt; 
SELECT *
{ ?s ?p ?o }
ORDER BY (?o+5)

</div>
<hr/>
<h2><a name="syntax-order-03">syntax-order-03.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-order-03.rq">data-r2/syntax-sparql1/syntax-order-03.rq</a><br/>
<div class="query">
PREFIX :      &lt;http://example.org/ns#&gt; 
SELECT *
{ ?s ?p ?o }
ORDER BY ASC(?o)

</div>
<hr/>
<h2><a name="syntax-order-04">syntax-order-04.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-order-04.rq">data-r2/syntax-sparql1/syntax-order-04.rq</a><br/>
<div class="query">
PREFIX :      &lt;http://example.org/ns#&gt; 
SELECT *
{ ?s ?p ?o }
ORDER BY DESC(?o)

</div>
<hr/>
<h2><a name="syntax-order-05">syntax-order-05.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-order-05.rq">data-r2/syntax-sparql1/syntax-order-05.rq</a><br/>
<div class="query">
PREFIX :      &lt;http://example.org/ns#&gt; 
SELECT *
{ ?s ?p ?o }
ORDER BY DESC(:func(?s, ?o))

</div>
<hr/>
<h2><a name="syntax-order-06">syntax-order-06.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-order-06.rq">data-r2/syntax-sparql1/syntax-order-06.rq</a><br/>
<div class="query">
PREFIX :      &lt;http://example.org/ns#&gt; 
SELECT *
{ ?s ?p ?o }
ORDER BY 
  DESC(?o+57) :func2(?o) ASC(?s)

</div>
<hr/>
<h2><a name="syntax-order-07">syntax-order-07.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-order-07.rq">data-r2/syntax-sparql1/syntax-order-07.rq</a><br/>
<div class="query">
PREFIX :      &lt;http://example.org/ns#&gt; 
SELECT *
{ ?s ?p ?o }
ORDER BY str(?o)

</div>
<hr/>
<h2><a name="syntax-pat-01">syntax-pat-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-pat-01.rq">data-r2/syntax-sparql1/syntax-pat-01.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt; 
SELECT *
{ }

</div>
<hr/>
<h2><a name="syntax-pat-02">syntax-pat-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-pat-02.rq">data-r2/syntax-sparql1/syntax-pat-02.rq</a><br/>
<div class="query">
# No DOT after optional
PREFIX : &lt;http://example.org/ns#&gt; 
SELECT *
{ ?a :b :c OPTIONAL{:x :y :z} :x ?y ?z }

</div>
<hr/>
<h2><a name="syntax-pat-03">syntax-pat-03.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-pat-03.rq">data-r2/syntax-sparql1/syntax-pat-03.rq</a><br/>
<div class="query">
# No DOT between non-triples patterns
PREFIX : &lt;http://example.org/ns#&gt; 
SELECT *
{ ?a :b :c 
  OPTIONAL{:x :y :z} 
  { :x1 :y1 :z1 } UNION { :x2 :y2 :z2 }
}

</div>
<hr/>
<h2><a name="syntax-pat-04">syntax-pat-04.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-pat-04.rq">data-r2/syntax-sparql1/syntax-pat-04.rq</a><br/>
<div class="query">
# No DOT between non-triples patterns
PREFIX : &lt;http://example.org/ns#&gt; 
SELECT *
{
  OPTIONAL{:x :y :z} 
  ?a :b :c 
  { :x1 :y1 :z1 } UNION { :x2 :y2 :z2 }
}

</div>
<hr/>
<h2><a name="syntax-qname-01">syntax-qname-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-qname-01.rq">data-r2/syntax-sparql1/syntax-qname-01.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt; 
SELECT *
{ ?x :p ?z }

</div>
<hr/>
<h2><a name="syntax-qname-02">syntax-qname-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-qname-02.rq">data-r2/syntax-sparql1/syntax-qname-02.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt; 
SELECT *
WHERE { :x :p :z . }

</div>
<hr/>
<h2><a name="syntax-qname-03">syntax-qname-03.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-qname-03.rq">data-r2/syntax-sparql1/syntax-qname-03.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt; 
SELECT *
WHERE { :_1 :p.rdf :z.z . }

</div>
<hr/>
<h2><a name="syntax-qname-04">syntax-qname-04.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-qname-04.rq">data-r2/syntax-sparql1/syntax-qname-04.rq</a><br/>
<div class="query">
PREFIX :  &lt;http://example.org/ns#&gt; 
PREFIX a: &lt;http://example.org/ns2#&gt; 
SELECT *
WHERE { : a: :a . : : : . }

</div>
<hr/>
<h2><a name="syntax-qname-05">syntax-qname-05.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-qname-05.rq">data-r2/syntax-sparql1/syntax-qname-05.rq</a><br/>
<div class="query">
PREFIX :  &lt;&gt; 
SELECT *
WHERE { : : : . }

</div>
<hr/>
<h2><a name="syntax-qname-06">syntax-qname-06.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-qname-06.rq">data-r2/syntax-sparql1/syntax-qname-06.rq</a><br/>
<div class="query">
PREFIX :  &lt;#&gt; 
SELECT *
WHERE { : : : . }

</div>
<hr/>
<h2><a name="syntax-qname-07">syntax-qname-07.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-qname-07.rq">data-r2/syntax-sparql1/syntax-qname-07.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt; 
SELECT *
WHERE { : : : . }

</div>
<hr/>
<h2><a name="syntax-qname-08">syntax-qname-08.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-qname-08.rq">data-r2/syntax-sparql1/syntax-qname-08.rq</a><br/>
<div class="query">
BASE   &lt;http://example.org/&gt;
PREFIX :  &lt;#&gt;
PREFIX x.y:  &lt;x#&gt;
SELECT *
WHERE { :a.b  x.y:  : . }

</div>
<hr/>
<h2><a name="syntax-reduced-01">syntax-reduced-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007OctDec/att-0069/13-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007OctDec/att-0069/13-dawg-minutes.html</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql5/syntax-reduced-01.rq">data-r2/syntax-sparql5/syntax-reduced-01.rq</a><br/>
<div class="query">
SELECT REDUCED * WHERE { ?x ?y ?z }

</div>
<hr/>
<h2><a name="syntax-reduced-02">syntax-reduced-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007OctDec/att-0069/13-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007OctDec/att-0069/13-dawg-minutes.html</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql5/syntax-reduced-02.rq">data-r2/syntax-sparql5/syntax-reduced-02.rq</a><br/>
<div class="query">
SELECT REDUCED ?x ?y WHERE { ?x ?y ?z }

</div>
<hr/>
<h2><a name="syntax-struct-01">syntax-struct-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-struct-01.rq">data-r2/syntax-sparql1/syntax-struct-01.rq</a><br/>
<div class="query">
# Operator
PREFIX :  &lt;http://example.org/ns#&gt; 
SELECT *
{ OPTIONAL { } }

</div>
<hr/>
<h2><a name="syntax-struct-02">syntax-struct-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-struct-02.rq">data-r2/syntax-sparql1/syntax-struct-02.rq</a><br/>
<div class="query">
# Operator
PREFIX :  &lt;http://example.org/ns#&gt; 
SELECT *
{ OPTIONAL { :a :b :c } }

</div>
<hr/>
<h2><a name="syntax-struct-03">syntax-struct-03.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-struct-03.rq">data-r2/syntax-sparql1/syntax-struct-03.rq</a><br/>
<div class="query">
# Triple, no DOT, operator
PREFIX :  &lt;http://example.org/ns#&gt; 
SELECT *
{ :p :q :r OPTIONAL { :a :b :c } }

</div>
<hr/>
<h2><a name="syntax-struct-05">syntax-struct-05.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-struct-05.rq">data-r2/syntax-sparql1/syntax-struct-05.rq</a><br/>
<div class="query">
# Triple, DOT, operator
PREFIX :  &lt;http://example.org/ns#&gt; 
SELECT *
{ :p :q :r . OPTIONAL { :a :b :c } }

</div>
<hr/>
<h2><a name="syntax-struct-06">syntax-struct-06.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-struct-06.rq">data-r2/syntax-sparql1/syntax-struct-06.rq</a><br/>
<div class="query">
# Triple, DOT, operator, DOT
PREFIX :  &lt;http://example.org/ns#&gt; 
SELECT *
{ :p :q :r . OPTIONAL { :a :b :c } . }

</div>
<hr/>
<h2><a name="syntax-struct-07">syntax-struct-07.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-struct-07.rq">data-r2/syntax-sparql1/syntax-struct-07.rq</a><br/>
<div class="query">
# Operator, no DOT
PREFIX :  &lt;http://example.org/ns#&gt; 
SELECT *
{ OPTIONAL { :a :b :c } }

</div>
<hr/>
<h2><a name="syntax-struct-08">syntax-struct-08.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-struct-08.rq">data-r2/syntax-sparql1/syntax-struct-08.rq</a><br/>
<div class="query">
# Operator, DOT
PREFIX :  &lt;http://example.org/ns#&gt; 
SELECT *
{ OPTIONAL { :a :b :c } . }

</div>
<hr/>
<h2><a name="syntax-struct-09">syntax-struct-09.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-struct-09.rq">data-r2/syntax-sparql1/syntax-struct-09.rq</a><br/>
<div class="query">
# Operator, triple
PREFIX :  &lt;http://example.org/ns#&gt; 
SELECT *
{ OPTIONAL { :a :b :c } ?x ?y ?z }

</div>
<hr/>
<h2><a name="syntax-struct-10">syntax-struct-10.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-struct-10.rq">data-r2/syntax-sparql1/syntax-struct-10.rq</a><br/>
<div class="query">
# Operator, DOT triple
PREFIX :  &lt;http://example.org/ns#&gt; 
SELECT *
{ OPTIONAL { :a :b :c } . ?x ?y ?z }

</div>
<hr/>
<h2><a name="syntax-struct-11">syntax-struct-11.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-struct-11.rq">data-r2/syntax-sparql1/syntax-struct-11.rq</a><br/>
<div class="query">
# Triple, semi, operator
PREFIX :  &lt;http://example.org/ns#&gt;
SELECT *
{ :p :q :r ; OPTIONAL { :a :b :c } }

</div>
<hr/>
<h2><a name="syntax-struct-12">syntax-struct-12.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-struct-12.rq">data-r2/syntax-sparql1/syntax-struct-12.rq</a><br/>
<div class="query">
# Triple, semi, DOT, operator
PREFIX :  &lt;http://example.org/ns#&gt;
SELECT *
{ :p :q :r ; . OPTIONAL { :a :b :c } }

</div>
<hr/>
<h2><a name="syntax-struct-13">syntax-struct-13.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-struct-13.rq">data-r2/syntax-sparql1/syntax-struct-13.rq</a><br/>
<div class="query">
# Two elements in the group
PREFIX :  &lt;http://example.org/ns#&gt;
SELECT *
{ :p :q :r . OPTIONAL { :a :b :c } 
  :p :q :r . OPTIONAL { :a :b :c } 
}

</div>
<hr/>
<h2><a name="syntax-struct-14">syntax-struct-14.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-struct-14.rq">data-r2/syntax-sparql1/syntax-struct-14.rq</a><br/>
<div class="query">
# Two elements in the group
PREFIX :  &lt;http://example.org/ns#&gt;
SELECT *
{ :p :q :r  OPTIONAL { :a :b :c } 
  :p :q :r  OPTIONAL { :a :b :c } 
}

</div>
<hr/>
<h2><a name="syntax-union-01">syntax-union-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-union-01.rq">data-r2/syntax-sparql1/syntax-union-01.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;
SELECT *
{
  { ?s ?p ?o } UNION { ?a ?b ?c } 
}

</div>
<hr/>
<h2><a name="syntax-union-02">syntax-union-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql1/syntax-union-02.rq">data-r2/syntax-sparql1/syntax-union-02.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;
SELECT *
{
  { ?s ?p ?o } UNION { ?a ?b ?c } UNION { ?r ?s ?t }
}

</div>
<hr/>
<h2><a name="syntax-bnode-01">syntax-bnode-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-bnode-01.rq">data-r2/syntax-sparql2/syntax-bnode-01.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT * WHERE { [] :p [] }

</div>
<hr/>
<h2><a name="syntax-bnode-02">syntax-bnode-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-bnode-02.rq">data-r2/syntax-sparql2/syntax-bnode-02.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
# Tab
SELECT * WHERE { [ ] :p [
	] }

</div>
<hr/>
<h2><a name="syntax-bnode-03">syntax-bnode-03.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-bnode-03.rq">data-r2/syntax-sparql2/syntax-bnode-03.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT * WHERE { [ :p :q 
 ] }

</div>
<hr/>
<h2><a name="syntax-dataset-01">syntax-dataset-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-dataset-01.rq">data-r2/syntax-sparql2/syntax-dataset-01.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT ?x
FROM &lt;http://example.org/graph&gt;
WHERE {}

</div>
<hr/>
<h2><a name="syntax-dataset-02">syntax-dataset-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-dataset-02.rq">data-r2/syntax-sparql2/syntax-dataset-02.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT ?x
FROM NAMED &lt;http://example.org/graph1&gt;
WHERE {}

</div>
<hr/>
<h2><a name="syntax-dataset-03">syntax-dataset-03.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-dataset-03.rq">data-r2/syntax-sparql2/syntax-dataset-03.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT ?x
FROM NAMED :graph1
FROM NAMED :graph2
WHERE {}

</div>
<hr/>
<h2><a name="syntax-dataset-04">syntax-dataset-04.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-dataset-04.rq">data-r2/syntax-sparql2/syntax-dataset-04.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT ?x
FROM :g1
FROM :g2
FROM NAMED :graph1
FROM NAMED :graph2
WHERE {}

</div>
<hr/>
<h2><a name="syntax-esc-01">syntax-esc-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-esc-01.rq">data-r2/syntax-sparql2/syntax-esc-01.rq</a><br/>
<div class="query">
SELECT *
WHERE { &lt;x&gt; &lt;p&gt; &quot;\t&quot; }

</div>
<hr/>
<h2><a name="syntax-esc-02">syntax-esc-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-esc-02.rq">data-r2/syntax-sparql2/syntax-esc-02.rq</a><br/>
<div class="query">
SELECT *
WHERE { &lt;x&gt; &lt;p&gt; &quot;x\t&quot; }

</div>
<hr/>
<h2><a name="syntax-esc-03">syntax-esc-03.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-esc-03.rq">data-r2/syntax-sparql2/syntax-esc-03.rq</a><br/>
<div class="query">
SELECT *
WHERE { &lt;x&gt; &lt;p&gt; &quot;\tx&quot; }

</div>
<hr/>
<h2><a name="syntax-esc-04">syntax-esc-04.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-esc-04.rq">data-r2/syntax-sparql2/syntax-esc-04.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 
SELECT *
WHERE { &lt;\u0078&gt; :\u0070 ?xx\u0078 }

</div>
<hr/>
<h2><a name="syntax-esc-05">syntax-esc-05.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-esc-05.rq">data-r2/syntax-sparql2/syntax-esc-05.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 
SELECT *
# Comments can contain \ u
# &lt;\u0078&gt; :\u0070 ?xx\u0078
WHERE { &lt;\u0078&gt; :\u0070 ?xx\u0078 }

</div>
<hr/>
<h2><a name="syntax-form-ask-02">syntax-form-ask-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-form-ask-02.rq">data-r2/syntax-sparql2/syntax-form-ask-02.rq</a><br/>
<div class="query">
ASK {}

</div>
<hr/>
<h2><a name="syntax-form-construct01">syntax-form-construct01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-form-construct01.rq">data-r2/syntax-sparql2/syntax-form-construct01.rq</a><br/>
<div class="query">
CONSTRUCT { ?s &lt;p1&gt; &lt;o&gt; . ?s &lt;p2&gt; ?o } WHERE {?s ?p ?o}

</div>
<hr/>
<h2><a name="syntax-form-construct02">syntax-form-construct02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-form-construct02.rq">data-r2/syntax-sparql2/syntax-form-construct02.rq</a><br/>
<div class="query">
CONSTRUCT { ?s &lt;p1&gt; &lt;o&gt; . ?s &lt;p2&gt; ?o .} WHERE {?s ?p ?o}

</div>
<hr/>
<h2><a name="syntax-form-construct03">syntax-form-construct03.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-form-construct03.rq">data-r2/syntax-sparql2/syntax-form-construct03.rq</a><br/>
<div class="query">
PREFIX  rdf:    &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
CONSTRUCT { [] rdf:subject ?s ;
               rdf:predicate ?p ;
               rdf:object ?o }
WHERE {?s ?p ?o}

</div>
<hr/>
<h2><a name="syntax-form-construct04">syntax-form-construct04.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-form-construct04.rq">data-r2/syntax-sparql2/syntax-form-construct04.rq</a><br/>
<div class="query">
PREFIX  rdf:    &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
CONSTRUCT { [] rdf:subject ?s ;
               rdf:predicate ?p ;
               rdf:object ?o . }
WHERE {?s ?p ?o}

</div>
<hr/>
<h2><a name="syntax-form-construct06">syntax-form-construct06.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-form-construct06.rq">data-r2/syntax-sparql2/syntax-form-construct06.rq</a><br/>
<div class="query">
CONSTRUCT {} WHERE {}

</div>
<hr/>
<h2><a name="syntax-form-describe01">syntax-form-describe01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-form-describe01.rq">data-r2/syntax-sparql2/syntax-form-describe01.rq</a><br/>
<div class="query">
DESCRIBE &lt;u&gt;

</div>
<hr/>
<h2><a name="syntax-form-describe02">syntax-form-describe02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-form-describe02.rq">data-r2/syntax-sparql2/syntax-form-describe02.rq</a><br/>
<div class="query">
DESCRIBE &lt;u&gt; ?u WHERE { &lt;x&gt; &lt;q&gt; ?u . }

</div>
<hr/>
<h2><a name="syntax-form-select-01">syntax-form-select-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-form-select-01.rq">data-r2/syntax-sparql2/syntax-form-select-01.rq</a><br/>
<div class="query">
SELECT * WHERE { }

</div>
<hr/>
<h2><a name="syntax-form-select-02">syntax-form-select-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-form-select-02.rq">data-r2/syntax-sparql2/syntax-form-select-02.rq</a><br/>
<div class="query">
SELECT * { }

</div>
<hr/>
<h2><a name="syntax-function-01">syntax-function-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-function-01.rq">data-r2/syntax-sparql2/syntax-function-01.rq</a><br/>
<div class="query">
PREFIX q: &lt;http://example.org/&gt;
SELECT * WHERE { FILTER (q:name()) }

</div>
<hr/>
<h2><a name="syntax-function-02">syntax-function-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-function-02.rq">data-r2/syntax-sparql2/syntax-function-02.rq</a><br/>
<div class="query">
PREFIX q: &lt;http://example.org/&gt;
SELECT * WHERE { FILTER (q:name( )) }

</div>
<hr/>
<h2><a name="syntax-function-03">syntax-function-03.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-function-03.rq">data-r2/syntax-sparql2/syntax-function-03.rq</a><br/>
<div class="query">
PREFIX q: &lt;http://example.org/&gt;
SELECT * WHERE { FILTER (q:name(
)) }

</div>
<hr/>
<h2><a name="syntax-function-04">syntax-function-04.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-function-04.rq">data-r2/syntax-sparql2/syntax-function-04.rq</a><br/>
<div class="query">
PREFIX q: &lt;http://example.org/&gt;
SELECT * WHERE { FILTER (q:name(1
)) . FILTER (q:name(1,2)) . FILTER (q:name(1
,2))}

</div>
<hr/>
<h2><a name="syntax-general-01">syntax-general-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-general-01.rq">data-r2/syntax-sparql2/syntax-general-01.rq</a><br/>
<div class="query">
SELECT * WHERE { &lt;a&gt;&lt;b&gt;&lt;c&gt; }

</div>
<hr/>
<h2><a name="syntax-general-02">syntax-general-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-general-02.rq">data-r2/syntax-sparql2/syntax-general-02.rq</a><br/>
<div class="query">
SELECT * WHERE { &lt;a&gt;&lt;b&gt;_:x }

</div>
<hr/>
<h2><a name="syntax-general-03">syntax-general-03.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-general-03.rq">data-r2/syntax-sparql2/syntax-general-03.rq</a><br/>
<div class="query">
SELECT * WHERE { &lt;a&gt;&lt;b&gt;1 }

</div>
<hr/>
<h2><a name="syntax-general-04">syntax-general-04.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-general-04.rq">data-r2/syntax-sparql2/syntax-general-04.rq</a><br/>
<div class="query">
SELECT * WHERE { &lt;a&gt;&lt;b&gt;+11 }

</div>
<hr/>
<h2><a name="syntax-general-05">syntax-general-05.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-general-05.rq">data-r2/syntax-sparql2/syntax-general-05.rq</a><br/>
<div class="query">
SELECT * WHERE { &lt;a&gt;&lt;b&gt;-1 }

</div>
<hr/>
<h2><a name="syntax-general-06">syntax-general-06.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-general-06.rq">data-r2/syntax-sparql2/syntax-general-06.rq</a><br/>
<div class="query">
SELECT * WHERE { &lt;a&gt;&lt;b&gt;1.0 }

</div>
<hr/>
<h2><a name="syntax-general-07">syntax-general-07.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-general-07.rq">data-r2/syntax-sparql2/syntax-general-07.rq</a><br/>
<div class="query">
SELECT * WHERE { &lt;a&gt;&lt;b&gt;+1.0 }

</div>
<hr/>
<h2><a name="syntax-general-08">syntax-general-08.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-general-08.rq">data-r2/syntax-sparql2/syntax-general-08.rq</a><br/>
<div class="query">
SELECT * WHERE { &lt;a&gt;&lt;b&gt;-1.0 }

</div>
<hr/>
<h2><a name="syntax-general-09">syntax-general-09.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-general-09.rq">data-r2/syntax-sparql2/syntax-general-09.rq</a><br/>
<div class="query">
SELECT * WHERE { &lt;a&gt;&lt;b&gt;1.0e0 }

</div>
<hr/>
<h2><a name="syntax-general-10">syntax-general-10.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-general-10.rq">data-r2/syntax-sparql2/syntax-general-10.rq</a><br/>
<div class="query">
SELECT * WHERE { &lt;a&gt;&lt;b&gt;+1.0e+1 }

</div>
<hr/>
<h2><a name="syntax-general-11">syntax-general-11.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-general-11.rq">data-r2/syntax-sparql2/syntax-general-11.rq</a><br/>
<div class="query">
SELECT * WHERE { &lt;a&gt;&lt;b&gt;-1.0e-1 }

</div>
<hr/>
<h2><a name="syntax-general-12">syntax-general-12.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-general-12.rq">data-r2/syntax-sparql2/syntax-general-12.rq</a><br/>
<div class="query">
# Legal, if unusual, IRIs
SELECT * WHERE { &lt;a&gt; &lt;b&gt; &lt;?z&gt; }

</div>
<hr/>
<h2><a name="syntax-general-13">syntax-general-13.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-general-13.rq">data-r2/syntax-sparql2/syntax-general-13.rq</a><br/>
<div class="query">
# Legal, if unusual, IRIs
BASE &lt;http://example/page.html&gt;
SELECT * WHERE { &lt;a&gt; &lt;b&gt; &lt;#x&gt; }

</div>
<hr/>
<h2><a name="syntax-general-14">syntax-general-14.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-general-14.rq">data-r2/syntax-sparql2/syntax-general-14.rq</a><br/>
<div class="query">
# Legal, if unusual, IRIs
BASE &lt;http://example/page.html?query&gt;
SELECT * WHERE { &lt;a&gt; &lt;b&gt; &lt;&amp;param=value&gt; }

</div>
<hr/>
<h2><a name="syntax-graph-01">syntax-graph-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-graph-01.rq">data-r2/syntax-sparql2/syntax-graph-01.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT *
WHERE
{
  GRAPH ?g { } 
}

</div>
<hr/>
<h2><a name="syntax-graph-02">syntax-graph-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-graph-02.rq">data-r2/syntax-sparql2/syntax-graph-02.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT *
WHERE
{
  GRAPH :a { } 
}

</div>
<hr/>
<h2><a name="syntax-graph-03">syntax-graph-03.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-graph-03.rq">data-r2/syntax-sparql2/syntax-graph-03.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT *
WHERE
{
  GRAPH ?g { :x :b ?a } 
}

</div>
<hr/>
<h2><a name="syntax-graph-04">syntax-graph-04.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-graph-04.rq">data-r2/syntax-sparql2/syntax-graph-04.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT *
WHERE
{
  :x :p :z
  GRAPH ?g { :x :b ?a } 
}

</div>
<hr/>
<h2><a name="syntax-graph-05">syntax-graph-05.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-graph-05.rq">data-r2/syntax-sparql2/syntax-graph-05.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT *
WHERE
{
  :x :p :z
  GRAPH ?g { :x :b ?a . GRAPH ?g2 { :x :p ?x } }
}

</div>
<hr/>
<h2><a name="syntax-keywords-01">syntax-keywords-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-keywords-01.rq">data-r2/syntax-sparql2/syntax-keywords-01.rq</a><br/>
<div class="query">
# use keyword FILTER as a namespace prefix
PREFIX FILTER: &lt;http://example.org/ns#&gt; 
SELECT *
WHERE { ?x FILTER:foo ?z FILTER (?z) }

</div>
<hr/>
<h2><a name="syntax-keywords-02">syntax-keywords-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-keywords-02.rq">data-r2/syntax-sparql2/syntax-keywords-02.rq</a><br/>
<div class="query">
# use keyword FILTER as a local name
PREFIX : &lt;http://example.org/ns#&gt; 
SELECT *
WHERE { ?x :FILTER ?z FILTER (?z) }

</div>
<hr/>
<h2><a name="syntax-keywords-03">syntax-keywords-03.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-keywords-03.rq">data-r2/syntax-sparql2/syntax-keywords-03.rq</a><br/>
<div class="query">
# use keyword UNION as a namespace prefix
PREFIX UNION: &lt;http://example.org/ns#&gt; 
SELECT *
WHERE { ?x UNION:foo ?z }

</div>
<hr/>
<h2><a name="syntax-lists-01">syntax-lists-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-lists-01.rq">data-r2/syntax-sparql2/syntax-lists-01.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT * WHERE { () :p 1 }

</div>
<hr/>
<h2><a name="syntax-lists-02">syntax-lists-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-lists-02.rq">data-r2/syntax-sparql2/syntax-lists-02.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT * WHERE { ( ) :p 1 }

</div>
<hr/>
<h2><a name="syntax-lists-03">syntax-lists-03.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-lists-03.rq">data-r2/syntax-sparql2/syntax-lists-03.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT * WHERE { ( 
) :p 1 }

</div>
<hr/>
<h2><a name="syntax-lists-04">syntax-lists-04.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-lists-04.rq">data-r2/syntax-sparql2/syntax-lists-04.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT * WHERE { ( 1 2
) :p 1 }

</div>
<hr/>
<h2><a name="syntax-lists-05">syntax-lists-05.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql2/syntax-lists-05.rq">data-r2/syntax-sparql2/syntax-lists-05.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT * WHERE { ( 1 2
) }

</div>
<hr/>
<h2><a name="blabel-cross-filter">syn-blabel-cross-filter</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0012/2007-04-10-dawg-minutes.html#item06">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0012/2007-04-10-dawg-minutes.html#item06</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-blabel-cross-filter.rq">data-r2/syntax-sparql3/syn-blabel-cross-filter.rq</a><br/>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $
# BNode label used across a FILTER.
PREFIX : &lt;http://xmlns.com/foaf/0.1/&gt;

ASK { _:who :homepage ?homepage 
      FILTER REGEX(?homepage, &quot;^http://example.org/&quot;) 
      _:who :schoolHomepage ?schoolPage }

</div>
<hr/>
<h2><a name="blabel-cross-graph-bad">syn-blabel-cross-graph-bad</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0012/2007-04-10-dawg-minutes.html#item06">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0012/2007-04-10-dawg-minutes.html#item06</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-blabel-cross-graph-bad.rq">data-r2/syntax-sparql3/syn-blabel-cross-graph-bad.rq</a><br/>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $
# BNode label used across a GRAPH.
PREFIX : &lt;http://xmlns.com/foaf/0.1/&gt;

ASK { _:who :homepage ?homepage 
      GRAPH ?g { ?someone :made ?homepage } 
      _:who :schoolHomepage ?schoolPage }

</div>
<hr/>
<h2><a name="blabel-cross-optional-bad">syn-blabel-cross-optional-bad</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-blabel-cross-optional-bad.rq">data-r2/syntax-sparql3/syn-blabel-cross-optional-bad.rq</a><br/>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $
# BNode label used across an OPTIONAL.
# This isn&#39;t necessarily a *syntax* test, but references to bnode labels
# may not span basic graph patterns.
PREFIX foaf: 	&lt;http://xmlns.com/foaf/0.1/&gt;

ASK { _:who foaf:homepage ?homepage 
      OPTIONAL { ?someone foaf:made ?homepage } 
      _:who foaf:schoolHomepage ?schoolPage }

</div>
<hr/>
<h2><a name="blabel-cross-union-bad">syn-blabel-cross-union-bad</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-blabel-cross-union-bad.rq">data-r2/syntax-sparql3/syn-blabel-cross-union-bad.rq</a><br/>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $
# BNode label used across a UNION.
# This isn&#39;t necessarily a *syntax* test, but references to bnode labels
# may not span basic graph patterns.
PREFIX foaf: 	&lt;http://xmlns.com/foaf/0.1/&gt;

ASK { _:who foaf:homepage ?homepage 
      { ?someone foaf:made ?homepage }
      UNION
      { ?homepage foaf:maker ?someone }
      _:who foaf:schoolHomepage ?schoolPage }

</div>
<hr/>
<h2><a name="bnode-dot">syn-bad-bnode-dot.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-bnode-dot.rq">data-r2/syntax-sparql3/syn-bad-bnode-dot.rq</a><br/>
<div class="query">
# NegativeSyntax/bnode-dot.rq
SELECT * WHERE {[] . }

</div>
<hr/>
<h2><a name="bnodes-missing-pvalues-01">syn-bad-bnodes-missing-pvalues-01.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-bnodes-missing-pvalues-01.rq">data-r2/syntax-sparql3/syn-bad-bnodes-missing-pvalues-01.rq</a><br/>
<div class="query">
# NegativeSyntax/bnodes-missing-pvalues.rq
PREFIX :   &lt;http://example/ns#&gt;
SELECT * WHERE { [,] :p [;] . }

</div>
<hr/>
<h2><a name="bnodes-missing-pvalues-02">syn-bad-bnodes-missing-pvalues-02.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-bnodes-missing-pvalues-02.rq">data-r2/syntax-sparql3/syn-bad-bnodes-missing-pvalues-02.rq</a><br/>
<div class="query">
# NegativeSyntax/bnodes-missing-pvalues-02.rq
SELECT * WHERE {() . [,] . [,;] }

</div>
<hr/>
<h2><a name="empty-optional-01">syn-bad-empty-optional-01.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-empty-optional-01.rq">data-r2/syntax-sparql3/syn-bad-empty-optional-01.rq</a><br/>
<div class="query">
# NegativeSyntax/empty-optional.rq
SELECT * { OPTIONAL FILTER (?x) }

</div>
<hr/>
<h2><a name="empty-optional-02">syn-bad-empty-optional-02.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-empty-optional-02.rq">data-r2/syntax-sparql3/syn-bad-empty-optional-02.rq</a><br/>
<div class="query">
# NegativeSyntax/empty-optional-02.rq
SELECT * { OPTIONAL GRAPH ?v OPTIONAL FILTER (?x) }

</div>
<hr/>
<h2><a name="filter-missing-parens">syn-bad-filter-missing-parens.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-filter-missing-parens.rq">data-r2/syntax-sparql3/syn-bad-filter-missing-parens.rq</a><br/>
<div class="query">
# NegativeSyntax/filter-missing-parens.rq
SELECT * { ?s ?p ?o FILTER ?x }

</div>
<hr/>
<h2><a name="lone-list">syn-bad-lone-list.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-lone-list.rq">data-r2/syntax-sparql3/syn-bad-lone-list.rq</a><br/>
<div class="query">
# NegativeSyntax/lone-list.rq
SELECT * WHERE { () }

</div>
<hr/>
<h2><a name="lone-node">syn-bad-lone-node.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-lone-node.rq">data-r2/syntax-sparql3/syn-bad-lone-node.rq</a><br/>
<div class="query">
# NegativeSyntax/lone-node.rq
SELECT * WHERE {&lt;a&gt;}

</div>
<hr/>
<h2><a name="syn-01">syn-01.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-01.rq">data-r2/syntax-sparql3/syn-01.rq</a><br/>
<div class="query">
# Dot after triple
SELECT * WHERE
{ ?s ?p ?o . }

</div>
<hr/>
<h2><a name="syn-02">syn-02.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-02.rq">data-r2/syntax-sparql3/syn-02.rq</a><br/>
<div class="query">
# No dot after triple
SELECT * WHERE
{ ?s ?p ?o }

</div>
<hr/>
<h2><a name="syn-03">syn-03.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-03.rq">data-r2/syntax-sparql3/syn-03.rq</a><br/>
<div class="query">
SELECT * WHERE
{ ?s ?p ?o . ?s ?p ?o . }

</div>
<hr/>
<h2><a name="syn-04">syn-04.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-04.rq">data-r2/syntax-sparql3/syn-04.rq</a><br/>
<div class="query">
# No dot
SELECT * WHERE
{ ?s ?p ?o . ?s ?p ?o }

</div>
<hr/>
<h2><a name="syn-05">syn-05.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-05.rq">data-r2/syntax-sparql3/syn-05.rq</a><br/>
<div class="query">
# DOT after non-triples
SELECT * WHERE
{ FILTER (?o&gt;5) . }

</div>
<hr/>
<h2><a name="syn-06">syn-06.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-06.rq">data-r2/syntax-sparql3/syn-06.rq</a><br/>
<div class="query">
# DOT after non-triples
SELECT * WHERE
{ FILTER (?o&gt;5) . ?s ?p ?o }

</div>
<hr/>
<h2><a name="syn-07">syn-07.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-07.rq">data-r2/syntax-sparql3/syn-07.rq</a><br/>
<div class="query">
# Trailing ;
PREFIX :   &lt;http://example/ns#&gt;
SELECT * WHERE
{ :s :p :o ; FILTER(?x) }

</div>
<hr/>
<h2><a name="syn-08">syn-08.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-08.rq">data-r2/syntax-sparql3/syn-08.rq</a><br/>
<div class="query">
# Broken ;
PREFIX :   &lt;http://example/ns#&gt;
SELECT * WHERE
{ :s :p :o ; . }

</div>
<hr/>
<h2><a name="syn-bad-01">syn-bad-01.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-01.rq">data-r2/syntax-sparql3/syn-bad-01.rq</a><br/>
<div class="query">
# More a test that bad syntax tests work!
PREFIX ex:   &lt;http://example/ns#&gt;
SELECT *

</div>
<hr/>
<h2><a name="syn-bad-02">syn-bad-02.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-02.rq">data-r2/syntax-sparql3/syn-bad-02.rq</a><br/>
<div class="query">
# Missing DOT, 2 triples
PREFIX :   &lt;http://example/ns#&gt;
SELECT *
{ :s1 :p1 :o1 :s2 :p2 :o2 . }

</div>
<hr/>
<h2><a name="syn-bad-03">syn-bad-03.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-03.rq">data-r2/syntax-sparql3/syn-bad-03.rq</a><br/>
<div class="query">
# Missing DOT between triples
PREFIX :   &lt;http://example/ns#&gt;
SELECT *
{ :s1 :p1 :o1 :s2 :p2 :o2 . }

</div>
<hr/>
<h2><a name="syn-bad-04">syn-bad-04.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-04.rq">data-r2/syntax-sparql3/syn-bad-04.rq</a><br/>
<div class="query">
# Missing DOT after ; between triples
PREFIX :   &lt;http://example/ns#&gt;
SELECT *
{ :s1 :p1 :o1 ; :s2 :p2 :o2 . }

</div>
<hr/>
<h2><a name="syn-bad-05">syn-bad-05.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-05.rq">data-r2/syntax-sparql3/syn-bad-05.rq</a><br/>
<div class="query">
# DOT, no triples
SELECT * WHERE
{ . }

</div>
<hr/>
<h2><a name="syn-bad-06">syn-bad-06.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-06.rq">data-r2/syntax-sparql3/syn-bad-06.rq</a><br/>
<div class="query">
# DOT, no triples
SELECT * WHERE
{ . . }

</div>
<hr/>
<h2><a name="syn-bad-07">syn-bad-07.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-07.rq">data-r2/syntax-sparql3/syn-bad-07.rq</a><br/>
<div class="query">
# DOT, then triples
SELECT * WHERE
{ . ?s ?p ?o }

</div>
<hr/>
<h2><a name="syn-bad-08">syn-bad-08.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-08.rq">data-r2/syntax-sparql3/syn-bad-08.rq</a><br/>
<div class="query">
# Multiple DOTs
SELECT * WHERE
{ ?s ?p ?o . . }

</div>
<hr/>
<h2><a name="syn-bad-09">syn-bad-09.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-09.rq">data-r2/syntax-sparql3/syn-bad-09.rq</a><br/>
<div class="query">
# Multiple DOTs
SELECT * WHERE
{ ?s ?p ?o .. }

</div>
<hr/>
<h2><a name="syn-bad-10">syn-bad-10.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-10.rq">data-r2/syntax-sparql3/syn-bad-10.rq</a><br/>
<div class="query">
# Multiple DOTs
SELECT * WHERE
{ ?s ?p ?o . . ?s1 ?p1 ?o1 }

</div>
<hr/>
<h2><a name="syn-bad-11">syn-bad-11.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-11.rq">data-r2/syntax-sparql3/syn-bad-11.rq</a><br/>
<div class="query">
# Multiple DOTs
SELECT * WHERE
{ ?s ?p ?o .. ?s1 ?p1 ?o1 }

</div>
<hr/>
<h2><a name="syn-bad-12">syn-bad-12.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-12.rq">data-r2/syntax-sparql3/syn-bad-12.rq</a><br/>
<div class="query">
# Multiple DOTs
SELECT * WHERE
{ ?s ?p ?o . . ?s1 ?p1 ?o1 }

</div>
<hr/>
<h2><a name="syn-bad-13">syn-bad-13.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-13.rq">data-r2/syntax-sparql3/syn-bad-13.rq</a><br/>
<div class="query">
# Multiple DOTs
SELECT * WHERE
{ ?s ?p ?o . ?s1 ?p1 ?o1 .. }

</div>
<hr/>
<h2><a name="syn-bad-14">syn-bad-14.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-14.rq">data-r2/syntax-sparql3/syn-bad-14.rq</a><br/>
<div class="query">
# DOT, no triples
SELECT * WHERE
{ . FILTER(?x) }

</div>
<hr/>
<h2><a name="syn-bad-15">syn-bad-15.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-15.rq">data-r2/syntax-sparql3/syn-bad-15.rq</a><br/>
<div class="query">
# Broken ;
SELECT * WHERE
{ ; FILTER(?x) }

</div>
<hr/>
<h2><a name="syn-bad-16">syn-bad-16.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-16.rq">data-r2/syntax-sparql3/syn-bad-16.rq</a><br/>
<div class="query">
# Broken ;
PREFIX :   &lt;http://example/ns#&gt;
SELECT * WHERE
{ :s ; :p :o }

</div>
<hr/>
<h2><a name="syn-bad-17">syn-bad-17.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-17.rq">data-r2/syntax-sparql3/syn-bad-17.rq</a><br/>
<div class="query">
# Broken ;
PREFIX :   &lt;http://example/ns#&gt;
SELECT * WHERE
{ :s :p ; }

</div>
<hr/>
<h2><a name="syn-bad-18">syn-bad-18.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-18.rq">data-r2/syntax-sparql3/syn-bad-18.rq</a><br/>
<div class="query">
# Broken ;
PREFIX :   &lt;http://example/ns#&gt;
SELECT * WHERE
{ :s :p ; FILTER(?x) }

</div>
<hr/>
<h2><a name="syn-bad-19">syn-bad-19.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-19.rq">data-r2/syntax-sparql3/syn-bad-19.rq</a><br/>
<div class="query">
# Broken ;
PREFIX :   &lt;http://example/ns#&gt;
SELECT * WHERE
{ :s :p :o . ;  }

</div>
<hr/>
<h2><a name="syn-bad-20">syn-bad-20.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-20.rq">data-r2/syntax-sparql3/syn-bad-20.rq</a><br/>
<div class="query">
# Broken ,
PREFIX :   &lt;http://example/ns#&gt;
SELECT * WHERE
{ :s , :p :o  }

</div>
<hr/>
<h2><a name="syn-bad-21">syn-bad-21.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-21.rq">data-r2/syntax-sparql3/syn-bad-21.rq</a><br/>
<div class="query">
# Broken ,
PREFIX :   &lt;http://example/ns#&gt;
SELECT * WHERE
{ :s  :p , :o  }

</div>
<hr/>
<h2><a name="syn-bad-22">syn-bad-22.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-22.rq">data-r2/syntax-sparql3/syn-bad-22.rq</a><br/>
<div class="query">
# Broken ,
PREFIX :   &lt;http://example/ns#&gt;
SELECT * WHERE
{ :s  :p , }

</div>
<hr/>
<h2><a name="syn-bad-23">syn-bad-23.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-23.rq">data-r2/syntax-sparql3/syn-bad-23.rq</a><br/>
<div class="query">
# Broken , can&#39;t trail
PREFIX :   &lt;http://example/ns#&gt;
SELECT * WHERE
{ :s  :p :o , }

</div>
<hr/>
<h2><a name="syn-bad-24">syn-bad-24.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-24.rq">data-r2/syntax-sparql3/syn-bad-24.rq</a><br/>
<div class="query">
# Broken , (should be ;)
PREFIX :   &lt;http://example/ns#&gt;
SELECT * WHERE
{ :s :p1 :o1 , :p2 :o2}

</div>
<hr/>
<h2><a name="syn-bad-25">syn-bad-25.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-25.rq">data-r2/syntax-sparql3/syn-bad-25.rq</a><br/>
<div class="query">
CONSTRUCT 

</div>
<hr/>
<h2><a name="syn-bad-26">syn-bad-26.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-26.rq">data-r2/syntax-sparql3/syn-bad-26.rq</a><br/>
<div class="query">
# Tokenizing matters.
# &quot;longest token rule&quot; means this isn&#39;t a &quot;&lt;&quot; and &quot;&amp;&amp;&quot;
PREFIX :   &lt;http://example/ns#&gt;
SELECT * WHERE
{ FILTER (?x&lt;?a&amp;&amp;?b&gt;?y) }

</div>
<hr/>
<h2><a name="syn-bad-27">syn-bad-27.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-27.rq">data-r2/syntax-sparql3/syn-bad-27.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;
SELECT * WHERE { :x [] :q }

</div>
<hr/>
<h2><a name="syn-bad-28">syn-bad-28.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-28.rq">data-r2/syntax-sparql3/syn-bad-28.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;
SELECT * WHERE { :x _:a :q }

</div>
<hr/>
<h2><a name="syn-bad-29">syn-bad-29.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-29.rq">data-r2/syntax-sparql3/syn-bad-29.rq</a><br/>
<div class="query">
# Syntactic blank node in a filter.
SELECT * WHERE { &lt;a&gt;&lt;b&gt;_:x FILTER(_:x) }

</div>
<hr/>
<h2><a name="syn-bad-30">syn-bad-30.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-30.rq">data-r2/syntax-sparql3/syn-bad-30.rq</a><br/>
<div class="query">
# Syntactic blank node in a filter.
SELECT * WHERE { &lt;a&gt;&lt;b&gt;_:x FILTER(_:x &lt; 3) }

</div>
<hr/>
<h2><a name="syn-bad-31">syn-bad-31.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JanMar/0047</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql3/syn-bad-31.rq">data-r2/syntax-sparql3/syn-bad-31.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT *
WHERE
{
  GRAPH [] { } 
}

</div>
<hr/>
<h2><a name="syn-09">syn-09.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://www.w3.org/2007/02/13-dawg-minutes.html">http://www.w3.org/2007/02/13-dawg-minutes.html</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql4/syn-09.rq">data-r2/syntax-sparql4/syn-09.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT *
WHERE
{
  _:a ?p ?v .  _:a ?q 1 
}

</div>
<hr/>
<h2><a name="syn-10">syn-10.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://www.w3.org/2007/02/13-dawg-minutes.html">http://www.w3.org/2007/02/13-dawg-minutes.html</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql4/syn-10.rq">data-r2/syntax-sparql4/syn-10.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT *
WHERE
{
  { _:a ?p ?v .  _:a ?q _:a } UNION { _:b ?q _:c }
}

</div>
<hr/>
<h2><a name="syn-11">syn-11.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://www.w3.org/2007/02/13-dawg-minutes.html">http://www.w3.org/2007/02/13-dawg-minutes.html</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql4/syn-11.rq">data-r2/syntax-sparql4/syn-11.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT *
WHERE
{
  _:a ?p ?v .  FILTER(true) . [] ?q _:a
}

</div>
<hr/>
<h2><a name="syn-bad-34">syn-bad-34.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://www.w3.org/2007/02/13-dawg-minutes.html">http://www.w3.org/2007/02/13-dawg-minutes.html</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql4/syn-bad-34.rq">data-r2/syntax-sparql4/syn-bad-34.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT *
WHERE
{
  _:a ?p ?v . { _:a ?q 1 }
}

</div>
<hr/>
<h2><a name="syn-bad-35">syn-bad-35.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://www.w3.org/2007/02/13-dawg-minutes.html">http://www.w3.org/2007/02/13-dawg-minutes.html</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql4/syn-bad-35.rq">data-r2/syntax-sparql4/syn-bad-35.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT *
WHERE
{
  { _:a ?p ?v . } _:a ?q 1 
}

</div>
<hr/>
<h2><a name="syn-bad-36">syn-bad-36.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://www.w3.org/2007/02/13-dawg-minutes.html">http://www.w3.org/2007/02/13-dawg-minutes.html</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql4/syn-bad-36.rq">data-r2/syntax-sparql4/syn-bad-36.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT *
WHERE
{
  { _:a ?p ?v . } UNION { _:a ?q 1 } 
}

</div>
<hr/>
<h2><a name="syn-bad-37">syn-bad-37.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://www.w3.org/2007/02/13-dawg-minutes.html">http://www.w3.org/2007/02/13-dawg-minutes.html</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql4/syn-bad-37.rq">data-r2/syntax-sparql4/syn-bad-37.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT *
WHERE
{
  { _:a ?p ?v . } _:a ?q 1 
}

</div>
<hr/>
<h2><a name="syn-bad-38">syn-bad-38.rq</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://www.w3.org/2007/02/13-dawg-minutes.html">http://www.w3.org/2007/02/13-dawg-minutes.html</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql4/syn-bad-38.rq">data-r2/syntax-sparql4/syn-bad-38.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT *
WHERE
{
  _:a ?p ?v . OPTIONAL {_:a ?q 1 }
}

</div>
<hr/>
<h2><a name="syn-bad-GRAPH-breaks-BGP">syn-bad-GRAPH-breaks-BGP</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0063/29-dawg-minutes.htm">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0063/29-dawg-minutes.htm</a></div>
<p>bad: re-used BNode label after GRAPH</p>
<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql4/syn-bad-GRAPH-breaks-BGP.rq">data-r2/syntax-sparql4/syn-bad-GRAPH-breaks-BGP.rq</a><br/>
<div class="query">
# bad: re-used BNode label after GRAPH
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX : &lt;http://example.org/&gt;
SELECT *
WHERE
{
  _:a ?p ?v . GRAPH ?g { ?s ?p ?v } _:a ?q 1
}

</div>
<hr/>
<h2><a name="syn-bad-OPT-breaks-BGP">syn-bad-OPT-breaks-BGP</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0063/29-dawg-minutes.htm">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0063/29-dawg-minutes.htm</a></div>
<p>bad: re-used BNode label after OPTIONAL</p>
<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql4/syn-bad-OPT-breaks-BGP.rq">data-r2/syntax-sparql4/syn-bad-OPT-breaks-BGP.rq</a><br/>
<div class="query">
# bad: re-used BNode label after OPTIONAL
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX : &lt;http://example.org/&gt;
SELECT *
WHERE
{
  _:a ?p ?v . OPTIONAL { ?s ?p ?v } _:a ?q 1
}

</div>
<hr/>
<h2><a name="syn-bad-UNION-breaks-BGP">syn-bad-UNION-breaks-BGP</a></h2>
Negative syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html</a></div>
<p>bad: re-used BNode label after UNION</p>
<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql4/syn-bad-UNION-breaks-BGP.rq">data-r2/syntax-sparql4/syn-bad-UNION-breaks-BGP.rq</a><br/>
<div class="query">
# bad: re-used BNode label after UNION
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $
# This isn&#39;t necessarily a *syntax* test, but references to bnode labels
# may not span basic graph patterns.

PREFIX : &lt;http://example.org/&gt;
SELECT *
WHERE
{
  _:a ?p ?v1 { ?s &lt;p1&gt; ?o } UNION { ?s &lt;p2&gt; ?o } _:a ?p ?v2
}

</div>
<hr/>
<h2><a name="syn-leading-digits-in-prefixed-names">syn-leading-digits-in-prefixed-names.rq</a></h2>
Syntax test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0063/29-dawg-minutes.htm">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0063/29-dawg-minutes.htm</a></div>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/syntax-sparql4/syn-leading-digits-in-prefixed-names.rq">data-r2/syntax-sparql4/syn-leading-digits-in-prefixed-names.rq</a><br/>
<div class="query">
PREFIX dob: &lt;http://placetime.com/interval/gregorian/1977-01-18T04:00:00Z/P&gt; 
PREFIX time: &lt;http://www.ai.sri.com/daml/ontologies/time/Time.daml#&gt;
PREFIX dc: &lt;http://purl.org/dc/elements/1.1/&gt;
SELECT ?desc
WHERE  { 
  dob:1D a time:ProperInterval;
         dc:description ?desc.
}

</div>
<hr/>
<h2><a name="filter-nested-1">Filter-nested - 1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>A FILTER is in scope for variables bound at the same level of the query tree</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/data-1.ttl">data-r2/algebra/data-1.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/filter-nested-1.rq">data-r2/algebra/filter-nested-1.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT ?v
{ :x :p ?v . FILTER(?v = 1) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/filter-nested-1.srx">data-r2/algebra/filter-nested-1.srx</a></p>
<hr/>
<h2><a name="filter-nested-2">Filter-nested - 2</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>A FILTER in a group { ... } cannot see variables bound outside that group</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/data-1.ttl">data-r2/algebra/data-1.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/filter-nested-2.rq">data-r2/algebra/filter-nested-2.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT ?v
{ :x :p ?v . { FILTER(?v = 1) } }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/filter-nested-2.srx">data-r2/algebra/filter-nested-2.srx</a></p>
<hr/>
<h2><a name="filter-place-1">Filter-placement - 1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>FILTER placed after the triple pattern that contains the variable tested</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/data-2.ttl">data-r2/algebra/data-2.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:x :p &quot;2&quot;^^xsd:integer .
:x :p &quot;3&quot;^^xsd:integer .
:x :p &quot;4&quot;^^xsd:integer .

:x :q &quot;1&quot;^^xsd:integer .
:x :q &quot;2&quot;^^xsd:integer .
:x :q &quot;3&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/filter-placement-1.rq">data-r2/algebra/filter-placement-1.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt;

SELECT ?v 
{ 
    ?s :p ?v . 
    FILTER (?v = 2)
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/filter-placement-1.srx">data-r2/algebra/filter-placement-1.srx</a></p>
<hr/>
<h2><a name="filter-place-2">Filter-placement - 2</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>FILTERs are scoped to the nearest enclosing group - placement within that group does not matter</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/data-2.ttl">data-r2/algebra/data-2.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:x :p &quot;2&quot;^^xsd:integer .
:x :p &quot;3&quot;^^xsd:integer .
:x :p &quot;4&quot;^^xsd:integer .

:x :q &quot;1&quot;^^xsd:integer .
:x :q &quot;2&quot;^^xsd:integer .
:x :q &quot;3&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/filter-placement-2.rq">data-r2/algebra/filter-placement-2.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt;

SELECT ?v 
{ 
    FILTER (?v = 2)
    ?s :p ?v . 
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/filter-placement-2.srx">data-r2/algebra/filter-placement-2.srx</a></p>
<hr/>
<h2><a name="filter-place-3">Filter-placement - 3</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>FILTERs are scoped to the nearest enclosing group - placement within that group does not matter</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/data-2.ttl">data-r2/algebra/data-2.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:x :p &quot;2&quot;^^xsd:integer .
:x :p &quot;3&quot;^^xsd:integer .
:x :p &quot;4&quot;^^xsd:integer .

:x :q &quot;1&quot;^^xsd:integer .
:x :q &quot;2&quot;^^xsd:integer .
:x :q &quot;3&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/filter-placement-3.rq">data-r2/algebra/filter-placement-3.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt;

SELECT ?v ?w
{ 
    FILTER (?v = 2)
    FILTER (?w = 3)
    ?s :p ?v . 
    ?s :q ?w .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/filter-placement-3.srx">data-r2/algebra/filter-placement-3.srx</a></p>
<hr/>
<h2><a name="filter-scope-1">Filter-scope - 1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>FILTERs in an OPTIONAL do not extend to variables bound outside of the LeftJoin(...) operation</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/data-2.ttl">data-r2/algebra/data-2.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:x :p &quot;2&quot;^^xsd:integer .
:x :p &quot;3&quot;^^xsd:integer .
:x :p &quot;4&quot;^^xsd:integer .

:x :q &quot;1&quot;^^xsd:integer .
:x :q &quot;2&quot;^^xsd:integer .
:x :q &quot;3&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/filter-scope-1.rq">data-r2/algebra/filter-scope-1.rq</a><br/>
<div class="query">
PREFIX :    &lt;http://example/&gt;

SELECT *
{ 
    :x :p ?v . 
    { :x :q ?w 
      OPTIONAL {  :x :p ?v2 FILTER(?v = 1) }
    }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/filter-scope-1.srx">data-r2/algebra/filter-scope-1.srx</a></p>
<hr/>
<h2><a name="join-combo-1">Join operator with OPTs, BGPs, and UNIONs</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html</a></div>
<p>Tests nested combination of Join with a BGP / OPT and a BGP / UNION</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/join-combo-graph-2.ttl">data-r2/algebra/join-combo-graph-2.ttl</a></p>
<div class="query">
@prefix   :         &lt;http://example/&gt; .
@prefix   rdf:      &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;1&quot;^^xsd:integer .
:x1 :r &quot;4&quot;^^xsd:integer .
:x2 :p &quot;2&quot;^^xsd:integer .
:x2 :r &quot;10&quot;^^xsd:integer .
:x2 :x &quot;1&quot;^^xsd:integer .
:x3 :q &quot;3&quot;^^xsd:integer .
:x3 :q &quot;4&quot;^^xsd:integer .
:x3 :s &quot;1&quot;^^xsd:integer .
:x3 :t :s .
:p a rdf:Property .
:x1 :z :p .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/join-combo-1.rq">data-r2/algebra/join-combo-1.rq</a><br/>
<div class="query">
PREFIX :    &lt;http://example/&gt;

SELECT ?a ?y ?d ?z
{ 
    ?a :p ?c OPTIONAL { ?a :r ?d }. 
    ?a ?p 1 { ?p a ?y } UNION { ?a ?z ?p } 
}
</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/join-combo-1.srx">data-r2/algebra/join-combo-1.srx</a></p>
<hr/>
<h2><a name="join-combo-2">Join operator with Graph and Union</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html</a></div>
<p>Tests combination of Join operator with Graph on LHS and Union on RHS</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/join-combo-graph-2.ttl">data-r2/algebra/join-combo-graph-2.ttl</a></p>
<div class="query">
@prefix   :         &lt;http://example/&gt; .
@prefix   rdf:      &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;1&quot;^^xsd:integer .
:x1 :r &quot;4&quot;^^xsd:integer .
:x2 :p &quot;2&quot;^^xsd:integer .
:x2 :r &quot;10&quot;^^xsd:integer .
:x2 :x &quot;1&quot;^^xsd:integer .
:x3 :q &quot;3&quot;^^xsd:integer .
:x3 :q &quot;4&quot;^^xsd:integer .
:x3 :s &quot;1&quot;^^xsd:integer .
:x3 :t :s .
:p a rdf:Property .
:x1 :z :p .

</div><p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/join-combo-graph-1.ttl">http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/join-combo-graph-1.ttl</a></p>
<div class="query">
@prefix   :         &lt;http://example/&gt; .
@prefix   rdf:      &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;1&quot;^^xsd:integer .
:x1 :r &quot;4&quot;^^xsd:integer .
:x2 :p &quot;2&quot;^^xsd:integer .
:x2 :r &quot;10&quot;^^xsd:integer .
:x2 :x &quot;1&quot;^^xsd:integer .
:x3 :q &quot;3&quot;^^xsd:integer .
:x3 :q &quot;4&quot;^^xsd:integer .
:x3 :s &quot;1&quot;^^xsd:integer .
:x3 :t :s .
:p a rdf:Property .
:x1 :z :p .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/join-combo-2.rq">data-r2/algebra/join-combo-2.rq</a><br/>
<div class="query">
PREFIX :    &lt;http://example/&gt;

SELECT ?x ?y ?z
{ 
    GRAPH ?g { ?x ?p 1 } { ?x :p ?y } UNION { ?p a ?z }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/join-combo-2.srx">data-r2/algebra/join-combo-2.srx</a></p>
<hr/>
<h2><a name="join-scope-1">Join scope - 1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>Variables have query scope.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/var-scope-join-1.ttl">data-r2/algebra/var-scope-join-1.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .

_:B1 :name &quot;paul&quot; .
_:B1 :phone &quot;777-3426&quot;. 

_:B2 :name &quot;john&quot; . 
_:B2 :email &lt;mailto:john@acd.edu&gt; .

_:B3 :name &quot;george&quot;. 
_:B3 :webPage &lt;http://www.george.edu/&gt; .

_:B4 :name &quot;ringo&quot;. 
_:B4 :email &lt;mailto:ringo@acd.edu&gt; .
_:B4 :webPage &lt;http://www.starr.edu/&gt; .
_:B4 :phone &quot;888-4537&quot;.

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/var-scope-join-1.rq">data-r2/algebra/var-scope-join-1.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt;

SELECT *
{ 
  ?X  :name &quot;paul&quot;
  {?Y :name &quot;george&quot; . OPTIONAL { ?X :email ?Z } }
}


</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/var-scope-join-1.srx">data-r2/algebra/var-scope-join-1.srx</a></p>
<hr/>
<h2><a name="nested-opt-1">Nested Optionals - 1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>Nested-optionals with a shared variable that does not appear in the middle pattern (a not well-formed query pattern as per "Semantics and Complexity" of SPARQL</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/two-nested-opt.ttl">data-r2/algebra/two-nested-opt.ttl</a></p>
<div class="query">
@prefix   :         &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;1&quot;^^xsd:integer .
:x2 :p &quot;2&quot;^^xsd:integer .
:x3 :q &quot;3&quot;^^xsd:integer .
:x3 :q &quot;4&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/two-nested-opt.rq">data-r2/algebra/two-nested-opt.rq</a><br/>
<div class="query">
PREFIX :    &lt;http://example/&gt;

SELECT *
{ 
    :x1 :p ?v .
    OPTIONAL
    {
      :x3 :q ?w .
      OPTIONAL { :x2 :p ?v }
    }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/two-nested-opt.srx">data-r2/algebra/two-nested-opt.srx</a></p>
<hr/>
<h2><a name="nested-opt-2">Nested Optionals - 2</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>OPTIONALs parse in a left-associative manner</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/two-nested-opt.ttl">data-r2/algebra/two-nested-opt.ttl</a></p>
<div class="query">
@prefix   :         &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;1&quot;^^xsd:integer .
:x2 :p &quot;2&quot;^^xsd:integer .
:x3 :q &quot;3&quot;^^xsd:integer .
:x3 :q &quot;4&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/two-nested-opt-alt.rq">data-r2/algebra/two-nested-opt-alt.rq</a><br/>
<div class="query">
PREFIX :    &lt;http://example/&gt;

## The nested optional example, rewritten to a form that is the same
## for the SPARQL algebra and the declarative semantics.
SELECT *
{ 
    :x1 :p ?v .
    OPTIONAL { :x3 :q ?w }
    OPTIONAL { :x3 :q ?w  . :x2 :p ?v }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/two-nested-opt-alt.srx">data-r2/algebra/two-nested-opt-alt.srx</a></p>
<hr/>
<h2><a name="opt-filter-1">Optional-filter - 1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>A FILTER inside an OPTIONAL can reference a variable bound in the required part of the OPTIONAL</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/opt-filter-1.ttl">data-r2/algebra/opt-filter-1.ttl</a></p>
<div class="query">
@prefix   :         &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;1&quot;^^xsd:integer .
:x2 :p &quot;2&quot;^^xsd:integer .

:x3 :q &quot;3&quot;^^xsd:integer .
:x3 :q &quot;4&quot;^^xsd:integer .
 

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/opt-filter-1.rq">data-r2/algebra/opt-filter-1.rq</a><br/>
<div class="query">
PREFIX :    &lt;http://example/&gt;

SELECT *
{ 
  ?x :p ?v .
  OPTIONAL
  { 
    ?y :q ?w .
    FILTER(?v=2)
  }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/opt-filter-1.srx">data-r2/algebra/opt-filter-1.srx</a></p>
<hr/>
<h2><a name="opt-filter-2">Optional-filter - 2 filters</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>FILTERs inside an OPTIONAL can refer to variables from both the required and optional parts of the construct.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/opt-filter-2.ttl">data-r2/algebra/opt-filter-2.ttl</a></p>
<div class="query">
@prefix   :         &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;1&quot;^^xsd:integer .
:x2 :p &quot;2&quot;^^xsd:integer .

:x3 :q &quot;3&quot;^^xsd:integer .
:x3 :q &quot;4&quot;^^xsd:integer .
 

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/opt-filter-2.rq">data-r2/algebra/opt-filter-2.rq</a><br/>
<div class="query">
PREFIX :    &lt;http://example/&gt;

SELECT *
{ 
  ?x :p ?v .
  OPTIONAL
  { 
    ?y :q ?w .
    FILTER(?v=2)
    FILTER(?w=3)
  }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/opt-filter-2.srx">data-r2/algebra/opt-filter-2.srx</a></p>
<hr/>
<h2><a name="opt-filter-3">Optional-filter - scope of variable</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>FILTERs in an OPTIONAL do not extend to variables bound outside of the LeftJoin(...) operation</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/opt-filter-3.ttl">data-r2/algebra/opt-filter-3.ttl</a></p>
<div class="query">
@prefix   :         &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;1&quot;^^xsd:integer .
:x2 :p &quot;2&quot;^^xsd:integer .

:x3 :q &quot;3&quot;^^xsd:integer .
:x3 :q &quot;4&quot;^^xsd:integer .
 

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/opt-filter-3.rq">data-r2/algebra/opt-filter-3.rq</a><br/>
<div class="query">
PREFIX :    &lt;http://example/&gt;

SELECT *
{ 
    :x :p ?v . 
    { :x :q ?w 
      # ?v is not in scope so ?v2 never set
      OPTIONAL {  :x :p ?v2 FILTER(?v = 1) }
    }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/algebra/opt-filter-3.srx">data-r2/algebra/opt-filter-3.srx</a></p>
<hr/>
<h2><a name="ask-1">ASK-1 (SPARQL XML results)</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/ask/data.ttl">data-r2/ask/data.ttl</a></p>
<div class="query">
@prefix :   &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:x :p &quot;2&quot;^^xsd:integer .
:x :p &quot;3&quot;^^xsd:integer .

:y :p :a .
:a :q :r .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/ask/ask-1.rq">data-r2/ask/ask-1.rq</a><br/>
<div class="query">
PREFIX :   &lt;http://example/&gt;

ASK { :x :p 1 }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/ask/ask-1.srx">data-r2/ask/ask-1.srx</a></p>
<hr/>
<h2><a name="ask-4">ASK-4 (SPARQL XML results)</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/ask/data.ttl">data-r2/ask/data.ttl</a></p>
<div class="query">
@prefix :   &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:x :p &quot;2&quot;^^xsd:integer .
:x :p &quot;3&quot;^^xsd:integer .

:y :p :a .
:a :q :r .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/ask/ask-4.rq">data-r2/ask/ask-4.rq</a><br/>
<div class="query">
PREFIX :   &lt;http://example/&gt;

ASK { :x :p 99 }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/ask/ask-4.srx">data-r2/ask/ask-4.srx</a></p>
<hr/>
<h2><a name="ask-7">ASK-7 (SPARQL XML results)</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/ask/data.ttl">data-r2/ask/data.ttl</a></p>
<div class="query">
@prefix :   &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:x :p &quot;2&quot;^^xsd:integer .
:x :p &quot;3&quot;^^xsd:integer .

:y :p :a .
:a :q :r .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/ask/ask-7.rq">data-r2/ask/ask-7.rq</a><br/>
<div class="query">
PREFIX :   &lt;http://example/&gt;

ASK { :x :p ?x }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/ask/ask-7.srx">data-r2/ask/ask-7.srx</a></p>
<hr/>
<h2><a name="ask-8">ASK-8 (SPARQL XML results)</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/ask/data.ttl">data-r2/ask/data.ttl</a></p>
<div class="query">
@prefix :   &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:x :p &quot;2&quot;^^xsd:integer .
:x :p &quot;3&quot;^^xsd:integer .

:y :p :a .
:a :q :r .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/ask/ask-8.rq">data-r2/ask/ask-8.rq</a><br/>
<div class="query">
PREFIX :   &lt;http://example/&gt;

ASK { :x :p ?x . FILTER(?x = 99) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/ask/ask-8.srx">data-r2/ask/ask-8.srx</a></p>
<hr/>
<h2><a name="base-prefix-1">Basic - Prefix/Base 1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-1.ttl">data-r2/basic/data-1.ttl</a></p>
<div class="query">
@prefix ns: &lt;http://example.org/ns#&gt; .
@prefix x:  &lt;http://example.org/x/&gt; .
@prefix z:  &lt;http://example.org/x/#&gt; .

x:x ns:p  &quot;d:x ns:p&quot; .
x:x x:p   &quot;x:x x:p&quot; .

z:x z:p   &quot;z:x z:p&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/base-prefix-1.rq">data-r2/basic/base-prefix-1.rq</a><br/>
<div class="query">
BASE &lt;http://example.org/x/&gt; 
PREFIX : &lt;&gt;

SELECT * WHERE { :x ?p ?v } 

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/base-prefix-1.srx">data-r2/basic/base-prefix-1.srx</a></p>
<hr/>
<h2><a name="base-prefix-2">Basic - Prefix/Base 2</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-1.ttl">data-r2/basic/data-1.ttl</a></p>
<div class="query">
@prefix ns: &lt;http://example.org/ns#&gt; .
@prefix x:  &lt;http://example.org/x/&gt; .
@prefix z:  &lt;http://example.org/x/#&gt; .

x:x ns:p  &quot;d:x ns:p&quot; .
x:x x:p   &quot;x:x x:p&quot; .

z:x z:p   &quot;z:x z:p&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/base-prefix-2.rq">data-r2/basic/base-prefix-2.rq</a><br/>
<div class="query">
BASE &lt;http://example.org/x/&gt; 
PREFIX : &lt;#&gt;

SELECT * WHERE { :x ?p ?v } 

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/base-prefix-2.srx">data-r2/basic/base-prefix-2.srx</a></p>
<hr/>
<h2><a name="base-prefix-3">Basic - Prefix/Base 3</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-1.ttl">data-r2/basic/data-1.ttl</a></p>
<div class="query">
@prefix ns: &lt;http://example.org/ns#&gt; .
@prefix x:  &lt;http://example.org/x/&gt; .
@prefix z:  &lt;http://example.org/x/#&gt; .

x:x ns:p  &quot;d:x ns:p&quot; .
x:x x:p   &quot;x:x x:p&quot; .

z:x z:p   &quot;z:x z:p&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/base-prefix-3.rq">data-r2/basic/base-prefix-3.rq</a><br/>
<div class="query">
PREFIX ns: &lt;http://example.org/ns#&gt;
PREFIX x:  &lt;http://example.org/x/&gt;

SELECT * WHERE { x:x ns:p ?v } 

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/base-prefix-3.srx">data-r2/basic/base-prefix-3.srx</a></p>
<hr/>
<h2><a name="base-prefix-4">Basic - Prefix/Base 4</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-1.ttl">data-r2/basic/data-1.ttl</a></p>
<div class="query">
@prefix ns: &lt;http://example.org/ns#&gt; .
@prefix x:  &lt;http://example.org/x/&gt; .
@prefix z:  &lt;http://example.org/x/#&gt; .

x:x ns:p  &quot;d:x ns:p&quot; .
x:x x:p   &quot;x:x x:p&quot; .

z:x z:p   &quot;z:x z:p&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/base-prefix-4.rq">data-r2/basic/base-prefix-4.rq</a><br/>
<div class="query">
BASE &lt;http://example.org/x/&gt;

SELECT * WHERE { &lt;x&gt; &lt;p&gt; ?v } 

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/base-prefix-4.srx">data-r2/basic/base-prefix-4.srx</a></p>
<hr/>
<h2><a name="base-prefix-5">Basic - Prefix/Base 5</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-1.ttl">data-r2/basic/data-1.ttl</a></p>
<div class="query">
@prefix ns: &lt;http://example.org/ns#&gt; .
@prefix x:  &lt;http://example.org/x/&gt; .
@prefix z:  &lt;http://example.org/x/#&gt; .

x:x ns:p  &quot;d:x ns:p&quot; .
x:x x:p   &quot;x:x x:p&quot; .

z:x z:p   &quot;z:x z:p&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/base-prefix-5.rq">data-r2/basic/base-prefix-5.rq</a><br/>
<div class="query">
BASE &lt;http://example.org/x/&gt;

SELECT * WHERE { &lt;#x&gt; &lt;#p&gt; ?v } 

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/base-prefix-5.srx">data-r2/basic/base-prefix-5.srx</a></p>
<hr/>
<h2><a name="bgp-no-match">Non-matching triple pattern</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html</a></div>
<p>Patterns not in data don't match</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-7.ttl">data-r2/basic/data-7.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/&gt; .
@prefix foaf: &lt;http://xmlns.com/foaf/0.1/&gt; .

:john a foaf:Person ;
   foaf:name &quot;John Smith&quot; .



</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/bgp-no-match.rq">data-r2/basic/bgp-no-match.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
PREFIX foaf: &lt;http://xmlns.com/foaf/0.1/&gt;
SELECT ?x
WHERE {
  ?x foaf:name &quot;John Smith&quot; ;
       a foaf:Womble .
}


</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/bgp-no-match.srx">data-r2/basic/bgp-no-match.srx</a></p>
<hr/>
<h2><a name="list-1">Basic - List 1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-2.ttl">data-r2/basic/data-2.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .


:x :list0 () .
:x :list1 (&quot;1&quot;^^xsd:integer) .
:x :list2 (&quot;11&quot;^^xsd:integer &quot;22&quot;^^xsd:integer) .
:x :list3 (&quot;111&quot;^^xsd:integer &quot;222&quot;^^xsd:integer &quot;333&quot;^^xsd:integer) .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/list-1.rq">data-r2/basic/list-1.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;

SELECT ?p
{ :x ?p () . }


</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/list-1.srx">data-r2/basic/list-1.srx</a></p>
<hr/>
<h2><a name="list-2">Basic - List 2</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-2.ttl">data-r2/basic/data-2.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .


:x :list0 () .
:x :list1 (&quot;1&quot;^^xsd:integer) .
:x :list2 (&quot;11&quot;^^xsd:integer &quot;22&quot;^^xsd:integer) .
:x :list3 (&quot;111&quot;^^xsd:integer &quot;222&quot;^^xsd:integer &quot;333&quot;^^xsd:integer) .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/list-2.rq">data-r2/basic/list-2.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;

SELECT ?p
{ :x ?p (1) . }


</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/list-2.srx">data-r2/basic/list-2.srx</a></p>
<hr/>
<h2><a name="list-3">Basic - List 3</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-2.ttl">data-r2/basic/data-2.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .


:x :list0 () .
:x :list1 (&quot;1&quot;^^xsd:integer) .
:x :list2 (&quot;11&quot;^^xsd:integer &quot;22&quot;^^xsd:integer) .
:x :list3 (&quot;111&quot;^^xsd:integer &quot;222&quot;^^xsd:integer &quot;333&quot;^^xsd:integer) .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/list-3.rq">data-r2/basic/list-3.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;

SELECT ?p ?v
{ :x ?p (?v) . }


</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/list-3.srx">data-r2/basic/list-3.srx</a></p>
<hr/>
<h2><a name="list-4">Basic - List 4</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-2.ttl">data-r2/basic/data-2.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .


:x :list0 () .
:x :list1 (&quot;1&quot;^^xsd:integer) .
:x :list2 (&quot;11&quot;^^xsd:integer &quot;22&quot;^^xsd:integer) .
:x :list3 (&quot;111&quot;^^xsd:integer &quot;222&quot;^^xsd:integer &quot;333&quot;^^xsd:integer) .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/list-4.rq">data-r2/basic/list-4.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;

SELECT ?p ?v ?w
{ :x ?p (?v ?w) . }


</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/list-4.srx">data-r2/basic/list-4.srx</a></p>
<hr/>
<h2><a name="prefix-name-1">Prefix name 1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html</a></div>
<p>No local name - foo:</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-6.ttl">data-r2/basic/data-6.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p1 &quot;1&quot;^^xsd:integer .
:x :p1 &quot;2&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/prefix-name-1.rq">data-r2/basic/prefix-name-1.rq</a><br/>
<div class="query">
PREFIX ex: &lt;http://example.org/ns#x&gt; 
SELECT ?p {
  ex: ?p 1 .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/prefix-name-1.srx">data-r2/basic/prefix-name-1.srx</a></p>
<hr/>
<h2><a name="quotes-1">Basic - Quotes 1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-3.ttl">data-r2/basic/data-3.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .

# This file uses UNIX line end conventions.

:x1 :p1 &quot;x&quot; .
:x2 :p2 &quot;&quot;&quot;x
y&quot;&quot;&quot; .

:x3 :p3 &quot;&quot;&quot;x
y&quot;&quot;&quot;^^:someType .



</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/quotes-1.rq">data-r2/basic/quotes-1.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;

SELECT ?x
{ ?x ?p &#39;&#39;&#39;x&#39;&#39;&#39; }



</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/quotes-1.srx">data-r2/basic/quotes-1.srx</a></p>
<hr/>
<h2><a name="quotes-2">Basic - Quotes 2</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-3.ttl">data-r2/basic/data-3.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .

# This file uses UNIX line end conventions.

:x1 :p1 &quot;x&quot; .
:x2 :p2 &quot;&quot;&quot;x
y&quot;&quot;&quot; .

:x3 :p3 &quot;&quot;&quot;x
y&quot;&quot;&quot;^^:someType .



</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/quotes-2.rq">data-r2/basic/quotes-2.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;

SELECT ?x
{ ?x ?p &quot;&quot;&quot;x&quot;&quot;&quot; }



</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/quotes-2.srx">data-r2/basic/quotes-2.srx</a></p>
<hr/>
<h2><a name="quotes-3">Basic - Quotes 3</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-3.ttl">data-r2/basic/data-3.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .

# This file uses UNIX line end conventions.

:x1 :p1 &quot;x&quot; .
:x2 :p2 &quot;&quot;&quot;x
y&quot;&quot;&quot; .

:x3 :p3 &quot;&quot;&quot;x
y&quot;&quot;&quot;^^:someType .



</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/quotes-3.rq">data-r2/basic/quotes-3.rq</a><br/>
<div class="query">
# This query uses UNIX line end conventions.
# It is in CVS in binary.
PREFIX : &lt;http://example.org/ns#&gt;

SELECT ?x
{ ?x ?p &#39;&#39;&#39;x
y&#39;&#39;&#39;
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/quotes-3.srx">data-r2/basic/quotes-3.srx</a></p>
<hr/>
<h2><a name="quotes-4">Basic - Quotes 4</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-3.ttl">data-r2/basic/data-3.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .

# This file uses UNIX line end conventions.

:x1 :p1 &quot;x&quot; .
:x2 :p2 &quot;&quot;&quot;x
y&quot;&quot;&quot; .

:x3 :p3 &quot;&quot;&quot;x
y&quot;&quot;&quot;^^:someType .



</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/quotes-4.rq">data-r2/basic/quotes-4.rq</a><br/>
<div class="query">
# This query uses UNIX line end conventions.
# It is in CVS in binary.
PREFIX : &lt;http://example.org/ns#&gt;
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; 

SELECT ?x
{ ?x ?p &quot;&quot;&quot;x
y&quot;&quot;&quot;^^:someType
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/quotes-4.srx">data-r2/basic/quotes-4.srx</a></p>
<hr/>
<h2><a name="spoo-1">Basic graph pattern - spoo</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>
<p>Test the :x :y :o1, :o2 construct</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-6.ttl">data-r2/basic/data-6.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p1 &quot;1&quot;^^xsd:integer .
:x :p1 &quot;2&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/spoo-1.rq">data-r2/basic/spoo-1.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt; 
PREFIX xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; 

SELECT ?s WHERE {
 ?s :p1 1, 2 .
}


</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/spoo-1.srx">data-r2/basic/spoo-1.srx</a></p>
<hr/>
<h2><a name="term-1">Basic - Term 1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-4.ttl">data-r2/basic/data-4.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix rdf:        &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .

:x :p1 &quot;true&quot;^^xsd:boolean .
:x :p2 &quot;false&quot;^^xsd:boolean .

:x rdf:type :C .

:x :n1  &quot;123.0&quot;^^xsd:decimal .
:x :n2  &quot;456.&quot;^^xsd:decimal .

:x :n3 &quot;+5&quot;^^xsd:integer .
:x :n4 &quot;-18&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/term-1.rq">data-r2/basic/term-1.rq</a><br/>
<div class="query">
PREFIX :     &lt;http://example.org/ns#&gt;
PREFIX xsd:  &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT * { :x ?p true . }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/term-1.srx">data-r2/basic/term-1.srx</a></p>
<hr/>
<h2><a name="term-2">Basic - Term 2</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-4.ttl">data-r2/basic/data-4.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix rdf:        &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .

:x :p1 &quot;true&quot;^^xsd:boolean .
:x :p2 &quot;false&quot;^^xsd:boolean .

:x rdf:type :C .

:x :n1  &quot;123.0&quot;^^xsd:decimal .
:x :n2  &quot;456.&quot;^^xsd:decimal .

:x :n3 &quot;+5&quot;^^xsd:integer .
:x :n4 &quot;-18&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/term-2.rq">data-r2/basic/term-2.rq</a><br/>
<div class="query">
PREFIX :     &lt;http://example.org/ns#&gt;
PREFIX xsd:  &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT * { :x ?p false }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/term-2.srx">data-r2/basic/term-2.srx</a></p>
<hr/>
<h2><a name="term-3">Basic - Term 3</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-4.ttl">data-r2/basic/data-4.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix rdf:        &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .

:x :p1 &quot;true&quot;^^xsd:boolean .
:x :p2 &quot;false&quot;^^xsd:boolean .

:x rdf:type :C .

:x :n1  &quot;123.0&quot;^^xsd:decimal .
:x :n2  &quot;456.&quot;^^xsd:decimal .

:x :n3 &quot;+5&quot;^^xsd:integer .
:x :n4 &quot;-18&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/term-3.rq">data-r2/basic/term-3.rq</a><br/>
<div class="query">
PREFIX :     &lt;http://example.org/ns#&gt;
PREFIX xsd:  &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT * { :x a ?C . }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/term-3.srx">data-r2/basic/term-3.srx</a></p>
<hr/>
<h2><a name="term-4">Basic - Term 4</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-4.ttl">data-r2/basic/data-4.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix rdf:        &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .

:x :p1 &quot;true&quot;^^xsd:boolean .
:x :p2 &quot;false&quot;^^xsd:boolean .

:x rdf:type :C .

:x :n1  &quot;123.0&quot;^^xsd:decimal .
:x :n2  &quot;456.&quot;^^xsd:decimal .

:x :n3 &quot;+5&quot;^^xsd:integer .
:x :n4 &quot;-18&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/term-4.rq">data-r2/basic/term-4.rq</a><br/>
<div class="query">
PREFIX :     &lt;http://example.org/ns#&gt;
PREFIX xsd:  &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT * { :x ?p 123.0 }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/term-4.srx">data-r2/basic/term-4.srx</a></p>
<hr/>
<h2><a name="term-5">Basic - Term 5</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-4.ttl">data-r2/basic/data-4.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix rdf:        &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .

:x :p1 &quot;true&quot;^^xsd:boolean .
:x :p2 &quot;false&quot;^^xsd:boolean .

:x rdf:type :C .

:x :n1  &quot;123.0&quot;^^xsd:decimal .
:x :n2  &quot;456.&quot;^^xsd:decimal .

:x :n3 &quot;+5&quot;^^xsd:integer .
:x :n4 &quot;-18&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/term-5.rq">data-r2/basic/term-5.rq</a><br/>
<div class="query">
PREFIX :     &lt;http://example.org/ns#&gt;
PREFIX xsd:  &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT * { :x ?p 123.0. }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/term-5.srx">data-r2/basic/term-5.srx</a></p>
<hr/>
<h2><a name="term-6">Basic - Term 6</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-4.ttl">data-r2/basic/data-4.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix rdf:        &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .

:x :p1 &quot;true&quot;^^xsd:boolean .
:x :p2 &quot;false&quot;^^xsd:boolean .

:x rdf:type :C .

:x :n1  &quot;123.0&quot;^^xsd:decimal .
:x :n2  &quot;456.&quot;^^xsd:decimal .

:x :n3 &quot;+5&quot;^^xsd:integer .
:x :n4 &quot;-18&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/term-6.rq">data-r2/basic/term-6.rq</a><br/>
<div class="query">
PREFIX :     &lt;http://example.org/ns#&gt;
PREFIX xsd:  &lt;http://www.w3.org/2001/XMLSchema#&gt;

# DOT is part of the decimal.
SELECT * { :x ?p 456. }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/term-6.srx">data-r2/basic/term-6.srx</a></p>
<hr/>
<h2><a name="term-7">Basic - Term 7</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-4.ttl">data-r2/basic/data-4.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix rdf:        &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .

:x :p1 &quot;true&quot;^^xsd:boolean .
:x :p2 &quot;false&quot;^^xsd:boolean .

:x rdf:type :C .

:x :n1  &quot;123.0&quot;^^xsd:decimal .
:x :n2  &quot;456.&quot;^^xsd:decimal .

:x :n3 &quot;+5&quot;^^xsd:integer .
:x :n4 &quot;-18&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/term-7.rq">data-r2/basic/term-7.rq</a><br/>
<div class="query">
PREFIX :     &lt;http://example.org/ns#&gt;
PREFIX xsd:  &lt;http://www.w3.org/2001/XMLSchema#&gt;

# DOT is part of the decimal.
SELECT * { :x ?p 456. . }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/term-7.srx">data-r2/basic/term-7.srx</a></p>
<hr/>
<h2><a name="term-8">Basic - Term 8</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-4.ttl">data-r2/basic/data-4.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix rdf:        &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .

:x :p1 &quot;true&quot;^^xsd:boolean .
:x :p2 &quot;false&quot;^^xsd:boolean .

:x rdf:type :C .

:x :n1  &quot;123.0&quot;^^xsd:decimal .
:x :n2  &quot;456.&quot;^^xsd:decimal .

:x :n3 &quot;+5&quot;^^xsd:integer .
:x :n4 &quot;-18&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/term-8.rq">data-r2/basic/term-8.rq</a><br/>
<div class="query">
PREFIX :     &lt;http://example.org/ns#&gt;
PREFIX xsd:  &lt;http://www.w3.org/2001/XMLSchema#&gt;

# DOT is part of the decimal.
SELECT * { :x ?p +5 }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/term-8.srx">data-r2/basic/term-8.srx</a></p>
<hr/>
<h2><a name="term-9">Basic - Term 9</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-4.ttl">data-r2/basic/data-4.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix rdf:        &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .

:x :p1 &quot;true&quot;^^xsd:boolean .
:x :p2 &quot;false&quot;^^xsd:boolean .

:x rdf:type :C .

:x :n1  &quot;123.0&quot;^^xsd:decimal .
:x :n2  &quot;456.&quot;^^xsd:decimal .

:x :n3 &quot;+5&quot;^^xsd:integer .
:x :n4 &quot;-18&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/term-9.rq">data-r2/basic/term-9.rq</a><br/>
<div class="query">
PREFIX :     &lt;http://example.org/ns#&gt;
PREFIX xsd:  &lt;http://www.w3.org/2001/XMLSchema#&gt;

# DOT is part of the decimal.
SELECT * { :x ?p -18 }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/term-9.srx">data-r2/basic/term-9.srx</a></p>
<hr/>
<h2><a name="var-1">Basic - Var 1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-5.ttl">data-r2/basic/data-5.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p1 &quot;1&quot;^^xsd:integer .
:x :p2 &quot;2&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/var-1.rq">data-r2/basic/var-1.rq</a><br/>
<div class="query">
PREFIX :     &lt;http://example.org/ns#&gt;
PREFIX xsd:  &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT * { :x ?p $v }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/var-1.srx">data-r2/basic/var-1.srx</a></p>
<hr/>
<h2><a name="var-2">Basic - Var 2</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/data-5.ttl">data-r2/basic/data-5.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p1 &quot;1&quot;^^xsd:integer .
:x :p2 &quot;2&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/var-2.rq">data-r2/basic/var-2.rq</a><br/>
<div class="query">
PREFIX :     &lt;http://example.org/ns#&gt;
PREFIX xsd:  &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT * { :x ?p $v . :x ?p ?v }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/basic/var-2.srx">data-r2/basic/var-2.srx</a></p>
<hr/>
<h2><a name="dawg-bnode-coref-001">dawg-bnode-coreference</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006</a></div>
<p>Query results must maintain bnode co-references in the dataset</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/bnode-coreference/data.ttl">data-r2/bnode-coreference/data.ttl</a></p>
<div class="query">
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix rdf:        &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix rdfs:	    &lt;http://www.w3.org/2000/01/rdf-schema#&gt; .

_:alice
    rdf:type        foaf:Person ;
    foaf:name       &quot;Alice&quot; ;
    foaf:mbox       &lt;mailto:alice@work&gt; ;
    foaf:knows      _:bob ;
    .

_:bob
    rdf:type        foaf:Person ;
    foaf:name       &quot;Bob&quot; ; 
    foaf:knows      _:alice ;
    foaf:mbox       &lt;mailto:bob@work&gt; ;
    foaf:mbox       &lt;mailto:bob@home&gt; ;
    .


_:eve
    rdf:type      foaf:Person ;
    foaf:name     &quot;Eve&quot; ; 
    foaf:knows    _:fred ;
    .

_:fred
    rdf:type      foaf:Person ;
    foaf:mbox     &lt;mailto:fred@edu&gt; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/bnode-coreference/query.rq">data-r2/bnode-coreference/query.rq</a><br/>
<div class="query">
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; 
PREFIX  foaf:       &lt;http://xmlns.com/foaf/0.1/&gt;

SELECT ?x ?y
WHERE {
  ?x foaf:knows ?y .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/bnode-coreference/result.ttl">data-r2/bnode-coreference/result.ttl</a></p>
<hr/>
<h2><a name="dawg-bev-1">Test 'boolean effective value' - true</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>Non-zero numerics, non-empty strings, and the true boolean have an EBV of true</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/data-1.ttl">data-r2/boolean-effective-value/data-1.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

# These object values are true by the boolean effective value rule.
:x1 :p    &quot;1&quot;^^xsd:integer .
:x2 :p    &quot;foo&quot; .
:x3 :p    &quot;0.01&quot;^^xsd:double .
:x4 :p    &quot;true&quot;^^xsd:boolean .

# These are false
:y1 :p    &quot;0&quot;^^xsd:integer .
:y2 :p    &quot;0.0&quot;^^xsd:double .
:y3 :p    &quot;&quot; .
:y4 :p    &quot;false&quot;^^xsd:boolean .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/query-bev-1.rq">data-r2/boolean-effective-value/query-bev-1.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/ns#&gt;
SELECT  ?a
WHERE
    { ?a :p ?v . 
      FILTER (?v) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/result-bev-1.ttl">data-r2/boolean-effective-value/result-bev-1.ttl</a></p>
<hr/>
<h2><a name="dawg-bev-2">Test 'boolean effective value' - false</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>Zero-valued numerics, the empty string, and the false boolean have an EBV of false</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/data-1.ttl">data-r2/boolean-effective-value/data-1.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

# These object values are true by the boolean effective value rule.
:x1 :p    &quot;1&quot;^^xsd:integer .
:x2 :p    &quot;foo&quot; .
:x3 :p    &quot;0.01&quot;^^xsd:double .
:x4 :p    &quot;true&quot;^^xsd:boolean .

# These are false
:y1 :p    &quot;0&quot;^^xsd:integer .
:y2 :p    &quot;0.0&quot;^^xsd:double .
:y3 :p    &quot;&quot; .
:y4 :p    &quot;false&quot;^^xsd:boolean .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/query-bev-2.rq">data-r2/boolean-effective-value/query-bev-2.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/ns#&gt;
SELECT  ?a
WHERE
    { ?a :p ?v . 
      FILTER ( ! ?v ) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/result-bev-2.ttl">data-r2/boolean-effective-value/result-bev-2.ttl</a></p>
<hr/>
<h2><a name="dawg-bev-3">Test 'boolean effective value' - &&</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>The && operator takes the EBV of its operands</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/data-1.ttl">data-r2/boolean-effective-value/data-1.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

# These object values are true by the boolean effective value rule.
:x1 :p    &quot;1&quot;^^xsd:integer .
:x2 :p    &quot;foo&quot; .
:x3 :p    &quot;0.01&quot;^^xsd:double .
:x4 :p    &quot;true&quot;^^xsd:boolean .

# These are false
:y1 :p    &quot;0&quot;^^xsd:integer .
:y2 :p    &quot;0.0&quot;^^xsd:double .
:y3 :p    &quot;&quot; .
:y4 :p    &quot;false&quot;^^xsd:boolean .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/query-bev-3.rq">data-r2/boolean-effective-value/query-bev-3.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/ns#&gt;
SELECT  ?a
WHERE
    { ?a :p ?v . 
      FILTER (&quot;true&quot;^^xsd:boolean &amp;&amp; ?v) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/result-bev-3.ttl">data-r2/boolean-effective-value/result-bev-3.ttl</a></p>
<hr/>
<h2><a name="dawg-bev-4">Test 'boolean effective value' - ||</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>The || operator takes the EBV of its operands</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/data-1.ttl">data-r2/boolean-effective-value/data-1.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

# These object values are true by the boolean effective value rule.
:x1 :p    &quot;1&quot;^^xsd:integer .
:x2 :p    &quot;foo&quot; .
:x3 :p    &quot;0.01&quot;^^xsd:double .
:x4 :p    &quot;true&quot;^^xsd:boolean .

# These are false
:y1 :p    &quot;0&quot;^^xsd:integer .
:y2 :p    &quot;0.0&quot;^^xsd:double .
:y3 :p    &quot;&quot; .
:y4 :p    &quot;false&quot;^^xsd:boolean .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/query-bev-4.rq">data-r2/boolean-effective-value/query-bev-4.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/ns#&gt;
SELECT  ?a
WHERE
    { ?a :p ?v . 
      FILTER (&quot;false&quot;^^xsd:boolean || ?v) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/result-bev-4.ttl">data-r2/boolean-effective-value/result-bev-4.ttl</a></p>
<hr/>
<h2><a name="dawg-bev-5">Test 'boolean effective value' - optional</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>The EBV of an unbound value  or a literal with an unknown datatype is a type error, which eliminates the solution in question</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/data-2.ttl">data-r2/boolean-effective-value/data-2.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

# These object values are true by the boolean effective value rule.
:x1 :p    &quot;1&quot;^^xsd:integer .
:x2 :p    &quot;foo&quot; .
:x3 :p    &quot;0.01&quot;^^xsd:double .
:x4 :p    &quot;true&quot;^^xsd:boolean .

# These are false
:y1 :p    &quot;0&quot;^^xsd:integer .
:y2 :p    &quot;0.0&quot;^^xsd:double .
:y3 :p    &quot;&quot; .
:y4 :p    &quot;false&quot;^^xsd:boolean .

# Optionals
:x1 :q    &quot;true&quot;^^xsd:boolean .
:x2 :q    &quot;false&quot;^^xsd:boolean .
:x3 :q    &quot;foo&quot;^^:unknown .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/query-bev-5.rq">data-r2/boolean-effective-value/query-bev-5.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/ns#&gt;
SELECT  ?a
WHERE
    { ?a :p ?v . 
      OPTIONAL
        { ?a :q ?w } . 
      FILTER (?w) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/result-bev-5.ttl">data-r2/boolean-effective-value/result-bev-5.ttl</a></p>
<hr/>
<h2><a name="dawg-bev-6">Test 'boolean effective value' - unknown types</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>Negating a type error is still a type error</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/data-2.ttl">data-r2/boolean-effective-value/data-2.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

# These object values are true by the boolean effective value rule.
:x1 :p    &quot;1&quot;^^xsd:integer .
:x2 :p    &quot;foo&quot; .
:x3 :p    &quot;0.01&quot;^^xsd:double .
:x4 :p    &quot;true&quot;^^xsd:boolean .

# These are false
:y1 :p    &quot;0&quot;^^xsd:integer .
:y2 :p    &quot;0.0&quot;^^xsd:double .
:y3 :p    &quot;&quot; .
:y4 :p    &quot;false&quot;^^xsd:boolean .

# Optionals
:x1 :q    &quot;true&quot;^^xsd:boolean .
:x2 :q    &quot;false&quot;^^xsd:boolean .
:x3 :q    &quot;foo&quot;^^:unknown .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/query-bev-6.rq">data-r2/boolean-effective-value/query-bev-6.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/ns#&gt;
SELECT  ?a ?w
WHERE
    { ?a :p ?v . 
      OPTIONAL
        { ?a :q ?w } . 
      FILTER ( ! ?w ) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/result-bev-6.ttl">data-r2/boolean-effective-value/result-bev-6.ttl</a></p>
<hr/>
<h2><a name="dawg-boolean-literal">Test literal 'true'</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/data-1.ttl">data-r2/boolean-effective-value/data-1.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

# These object values are true by the boolean effective value rule.
:x1 :p    &quot;1&quot;^^xsd:integer .
:x2 :p    &quot;foo&quot; .
:x3 :p    &quot;0.01&quot;^^xsd:double .
:x4 :p    &quot;true&quot;^^xsd:boolean .

# These are false
:y1 :p    &quot;0&quot;^^xsd:integer .
:y2 :p    &quot;0.0&quot;^^xsd:double .
:y3 :p    &quot;&quot; .
:y4 :p    &quot;false&quot;^^xsd:boolean .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/query-boolean-literal.rq">data-r2/boolean-effective-value/query-boolean-literal.rq</a><br/>
<div class="query">
prefix : &lt;http://example.org/ns#&gt;
select ?x where {
    ?x :p &quot;foo&quot; .
    FILTER (true) .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/boolean-effective-value/result-boolean-literal.ttl">data-r2/boolean-effective-value/result-boolean-literal.ttl</a></p>
<hr/>
<h2><a name="dawg-bound-query-001">dawg-bound-query-001</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006</a></div>
<p>BOUND test case.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/bound/data.ttl">data-r2/bound/data.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/ns#&gt; .
:a1 :b :c1 . 
:c1 :d :e . 
:a2 :b :c2 .
:c2 :b :f .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/bound/bound1.rq">data-r2/bound/bound1.rq</a><br/>
<div class="query">
PREFIX  : &lt;http://example.org/ns#&gt;
SELECT  ?a ?c
WHERE
    { ?a :b ?c . 
      OPTIONAL
        { ?c :d ?e } . 
      FILTER (! bound(?e)) 
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/bound/bound1-result.ttl">data-r2/bound/bound1-result.ttl</a></p>
<hr/>
<h2><a name="cast-bool">Cast to xsd:boolean</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/data.ttl">data-r2/cast/data.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/&gt; .

:iri :p :z .
:str :p &quot;string&quot; .
:fltdbl :p &quot;-10.2E3&quot; .
:decimal :p &quot;+33.3300&quot; .
:int :p &quot;13&quot; .
:dT :p &quot;2002-10-10T17:00:00Z&quot; .
:bool :p &quot;true&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/cast-bool.rq">data-r2/cast/cast-bool.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
SELECT ?s WHERE {
    ?s :p ?v .
    FILTER(datatype(xsd:boolean(?v)) = xsd:boolean) .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/cast-bool.srx">data-r2/cast/cast-bool.srx</a></p>
<hr/>
<h2><a name="cast-dT">Cast to xsd:dateTime</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/data.ttl">data-r2/cast/data.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/&gt; .

:iri :p :z .
:str :p &quot;string&quot; .
:fltdbl :p &quot;-10.2E3&quot; .
:decimal :p &quot;+33.3300&quot; .
:int :p &quot;13&quot; .
:dT :p &quot;2002-10-10T17:00:00Z&quot; .
:bool :p &quot;true&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/cast-dT.rq">data-r2/cast/cast-dT.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
SELECT ?s WHERE {
    ?s :p ?v .
    FILTER(datatype(xsd:dateTime(?v)) = xsd:dateTime) .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/cast-dT.srx">data-r2/cast/cast-dT.srx</a></p>
<hr/>
<h2><a name="cast-dbl">Cast to xsd:double</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/data.ttl">data-r2/cast/data.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/&gt; .

:iri :p :z .
:str :p &quot;string&quot; .
:fltdbl :p &quot;-10.2E3&quot; .
:decimal :p &quot;+33.3300&quot; .
:int :p &quot;13&quot; .
:dT :p &quot;2002-10-10T17:00:00Z&quot; .
:bool :p &quot;true&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/cast-dbl.rq">data-r2/cast/cast-dbl.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
SELECT ?s WHERE {
    ?s :p ?v .
    FILTER(datatype(xsd:double(?v)) = xsd:double) .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/cast-dbl.srx">data-r2/cast/cast-dbl.srx</a></p>
<hr/>
<h2><a name="cast-dec">Cast to xsd:decimal</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/data.ttl">data-r2/cast/data.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/&gt; .

:iri :p :z .
:str :p &quot;string&quot; .
:fltdbl :p &quot;-10.2E3&quot; .
:decimal :p &quot;+33.3300&quot; .
:int :p &quot;13&quot; .
:dT :p &quot;2002-10-10T17:00:00Z&quot; .
:bool :p &quot;true&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/cast-dec.rq">data-r2/cast/cast-dec.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
SELECT ?s WHERE {
    ?s :p ?v .
    FILTER(datatype(xsd:decimal(?v)) = xsd:decimal) .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/cast-dec.srx">data-r2/cast/cast-dec.srx</a></p>
<hr/>
<h2><a name="cast-flt">Cast to xsd:float</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/data.ttl">data-r2/cast/data.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/&gt; .

:iri :p :z .
:str :p &quot;string&quot; .
:fltdbl :p &quot;-10.2E3&quot; .
:decimal :p &quot;+33.3300&quot; .
:int :p &quot;13&quot; .
:dT :p &quot;2002-10-10T17:00:00Z&quot; .
:bool :p &quot;true&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/cast-flt.rq">data-r2/cast/cast-flt.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
SELECT ?s WHERE {
    ?s :p ?v .
    FILTER(datatype(xsd:float(?v)) = xsd:float) .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/cast-flt.srx">data-r2/cast/cast-flt.srx</a></p>
<hr/>
<h2><a name="cast-int">Cast to xsd:integer</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/data.ttl">data-r2/cast/data.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/&gt; .

:iri :p :z .
:str :p &quot;string&quot; .
:fltdbl :p &quot;-10.2E3&quot; .
:decimal :p &quot;+33.3300&quot; .
:int :p &quot;13&quot; .
:dT :p &quot;2002-10-10T17:00:00Z&quot; .
:bool :p &quot;true&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/cast-int.rq">data-r2/cast/cast-int.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
SELECT ?s WHERE {
    ?s :p ?v .
    FILTER(datatype(xsd:integer(?v)) = xsd:integer) .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/cast-int.srx">data-r2/cast/cast-int.srx</a></p>
<hr/>
<h2><a name="cast-str">Cast to xsd:string</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/data.ttl">data-r2/cast/data.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/&gt; .

:iri :p :z .
:str :p &quot;string&quot; .
:fltdbl :p &quot;-10.2E3&quot; .
:decimal :p &quot;+33.3300&quot; .
:int :p &quot;13&quot; .
:dT :p &quot;2002-10-10T17:00:00Z&quot; .
:bool :p &quot;true&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/cast-str.rq">data-r2/cast/cast-str.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
SELECT ?s WHERE {
    ?s :p ?v .
    FILTER(datatype(xsd:string(?v)) = xsd:string) .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/cast-str.srx">data-r2/cast/cast-str.srx</a></p>
<hr/>
<h2><a name="construct-1">dawg-construct-identity</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Graph equivalent result graph</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/construct/data-ident.ttl">data-r2/construct/data-ident.ttl</a></p>
<div class="query">
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix rdf:        &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix rdfs:	    &lt;http://www.w3.org/2000/01/rdf-schema#&gt; .

_:alice
    rdf:type        foaf:Person ;
    foaf:name       &quot;Alice&quot; ;
    foaf:mbox       &lt;mailto:alice@work&gt; ;
    foaf:knows      _:bob ;
    .

_:bob
    rdf:type        foaf:Person ;
    foaf:name       &quot;Bob&quot; ; 
    foaf:knows      _:alice ;
    foaf:mbox       &lt;mailto:bob@work&gt; ;
    foaf:mbox       &lt;mailto:bob@home&gt; ;
    .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/construct/query-ident.rq">data-r2/construct/query-ident.rq</a><br/>
<div class="query">
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; 
PREFIX  foaf:       &lt;http://xmlns.com/foaf/0.1/&gt;

CONSTRUCT { ?s ?p ?o . }
WHERE {
  ?s ?p ?o .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/construct/result-ident.ttl">data-r2/construct/result-ident.ttl</a></p>
<hr/>
<h2><a name="construct-2">dawg-construct-subgraph</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Result subgraph of original graph</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/construct/data-ident.ttl">data-r2/construct/data-ident.ttl</a></p>
<div class="query">
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix rdf:        &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix rdfs:	    &lt;http://www.w3.org/2000/01/rdf-schema#&gt; .

_:alice
    rdf:type        foaf:Person ;
    foaf:name       &quot;Alice&quot; ;
    foaf:mbox       &lt;mailto:alice@work&gt; ;
    foaf:knows      _:bob ;
    .

_:bob
    rdf:type        foaf:Person ;
    foaf:name       &quot;Bob&quot; ; 
    foaf:knows      _:alice ;
    foaf:mbox       &lt;mailto:bob@work&gt; ;
    foaf:mbox       &lt;mailto:bob@home&gt; ;
    .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/construct/query-subgraph.rq">data-r2/construct/query-subgraph.rq</a><br/>
<div class="query">
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; 
PREFIX  foaf:       &lt;http://xmlns.com/foaf/0.1/&gt;

CONSTRUCT { ?s foaf:name ?o . }
WHERE {
  ?s foaf:name ?o .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/construct/result-subgraph.ttl">data-r2/construct/result-subgraph.ttl</a></p>
<hr/>
<h2><a name="construct-3">dawg-construct-reification-1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Reification of the default graph</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/construct/data-reif.ttl">data-r2/construct/data-reif.ttl</a></p>
<div class="query">
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix rdf:        &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix rdfs:	    &lt;http://www.w3.org/2000/01/rdf-schema#&gt; .

_:alice
    rdf:type        foaf:Person ;
    foaf:name       &quot;Alice&quot; ;
    foaf:mbox       &lt;mailto:alice@work&gt; ;
    foaf:knows      _:bob ;
    .

_:bob
    rdf:type        foaf:Person ;
    foaf:name       &quot;Bob&quot; ; 
    foaf:knows      _:alice ;
    foaf:mbox       &lt;mailto:bob@home&gt; ;
    .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/construct/query-reif-1.rq">data-r2/construct/query-reif-1.rq</a><br/>
<div class="query">
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; 
PREFIX  foaf:       &lt;http://xmlns.com/foaf/0.1/&gt;

CONSTRUCT { [ rdf:subject ?s ;
              rdf:predicate ?p ;
              rdf:object ?o ] . }
WHERE {
  ?s ?p ?o .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/construct/result-reif.ttl">data-r2/construct/result-reif.ttl</a></p>
<hr/>
<h2><a name="construct-4">dawg-construct-reification-2</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Reification of the default graph</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/construct/data-reif.ttl">data-r2/construct/data-reif.ttl</a></p>
<div class="query">
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix rdf:        &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix rdfs:	    &lt;http://www.w3.org/2000/01/rdf-schema#&gt; .

_:alice
    rdf:type        foaf:Person ;
    foaf:name       &quot;Alice&quot; ;
    foaf:mbox       &lt;mailto:alice@work&gt; ;
    foaf:knows      _:bob ;
    .

_:bob
    rdf:type        foaf:Person ;
    foaf:name       &quot;Bob&quot; ; 
    foaf:knows      _:alice ;
    foaf:mbox       &lt;mailto:bob@home&gt; ;
    .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/construct/query-reif-2.rq">data-r2/construct/query-reif-2.rq</a><br/>
<div class="query">
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; 
PREFIX  foaf:       &lt;http://xmlns.com/foaf/0.1/&gt;

CONSTRUCT { _:a rdf:subject ?s ;
                rdf:predicate ?p ;
                rdf:object ?o  . }
WHERE {
  ?s ?p ?o .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/construct/result-reif.ttl">data-r2/construct/result-reif.ttl</a></p>
<hr/>
<h2><a name="construct-5">dawg-construct-optional</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Reification of the default graph</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/construct/data-opt.ttl">data-r2/construct/data-opt.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p :a .
:x :p :b .
:x :p :c .
:x :p &quot;1&quot;^^xsd:integer .

:a :q &quot;2&quot;^^xsd:integer .
:a :r &quot;2&quot;^^xsd:integer .

:b :q &quot;2&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/construct/query-construct-optional.rq">data-r2/construct/query-construct-optional.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

CONSTRUCT { ?x :p2 ?v }

WHERE
{
  ?x :p ?o .
  OPTIONAL {?o :q ?v }
}


</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/construct/result-construct-optional.ttl">data-r2/construct/result-construct-optional.ttl</a></p>
<hr/>
<h2><a name="dawg-dataset-01">dataset-01</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Data: default dataset / Query: default dataset</p>
<h3>Default Graph</h3>

<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-01.rq">data-r2/dataset/dataset-01.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * 
FROM &lt;data-g1.ttl&gt;
{ ?s ?p ?o }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-01.ttl">data-r2/dataset/dataset-01.ttl</a></p>
<hr/>
<h2><a name="dawg-dataset-02">dataset-02</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Data: named dataset / Query: default dataset</p>
<h3>Default Graph</h3>

<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-02.rq">data-r2/dataset/dataset-02.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT *
FROM NAMED &lt;data-g1.ttl&gt;
{ ?s ?p ?o }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-02.ttl">data-r2/dataset/dataset-02.ttl</a></p>
<hr/>
<h2><a name="dawg-dataset-03">dataset-03</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Data: named dataset / Query: named dataset dataset</p>
<h3>Default Graph</h3>

<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-03.rq">data-r2/dataset/dataset-03.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * 
FROM NAMED &lt;data-g1.ttl&gt;
{ 
    GRAPH ?g { ?s ?p ?o }
}


</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-03.ttl">data-r2/dataset/dataset-03.ttl</a></p>
<hr/>
<h2><a name="dawg-dataset-04">dataset-04</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Data: named dataset / Query: default dataset</p>
<h3>Default Graph</h3>

<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-04.rq">data-r2/dataset/dataset-04.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * 
FROM &lt;data-g1.ttl&gt;
{ 
    GRAPH ?g { ?s ?p ?o }
}


</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-04.ttl">data-r2/dataset/dataset-04.ttl</a></p>
<hr/>
<h2><a name="dawg-dataset-05">dataset-05</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Data: default and named / Query: default dataset</p>
<h3>Default Graph</h3>

<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-05.rq">data-r2/dataset/dataset-05.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * 
FROM &lt;data-g1.ttl&gt;
FROM NAMED &lt;data-g2.ttl&gt;
{ ?s ?p ?o }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-05.ttl">data-r2/dataset/dataset-05.ttl</a></p>
<hr/>
<h2><a name="dawg-dataset-06">dataset-06</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Data: default and named / Query: named dataset</p>
<h3>Default Graph</h3>

<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-06.rq">data-r2/dataset/dataset-06.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * 
FROM &lt;data-g1.ttl&gt;
FROM NAMED &lt;data-g2.ttl&gt;
{ 
    GRAPH ?g { ?s ?p ?o }
}


</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-06.ttl">data-r2/dataset/dataset-06.ttl</a></p>
<hr/>
<h2><a name="dawg-dataset-07">dataset-07</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Data: default and named / Query: all data by UNION</p>
<h3>Default Graph</h3>

<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-07.rq">data-r2/dataset/dataset-07.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * 
FROM &lt;data-g1.ttl&gt;
FROM NAMED &lt;data-g2.ttl&gt;
{ 
   { ?s ?p ?o }
  UNION
   { GRAPH ?g { ?s ?p ?o } }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-07.ttl">data-r2/dataset/dataset-07.ttl</a></p>
<hr/>
<h2><a name="dawg-dataset-08">dataset-08</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Data: default and named / Query: common subjects</p>
<h3>Default Graph</h3>

<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-08.rq">data-r2/dataset/dataset-08.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * 
FROM &lt;data-g1.ttl&gt;
FROM NAMED &lt;data-g2.ttl&gt;
{ 
   ?s ?p ?o
   GRAPH ?g { ?s ?q ?v }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-08.ttl">data-r2/dataset/dataset-08.ttl</a></p>
<hr/>
<h2><a name="dawg-dataset-09">dataset-09</a></h2>
Query evaluation test

<p>Data: default and named (bnodes) / Query: common subjects</p>
<h3>Default Graph</h3>

<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-09.rq">data-r2/dataset/dataset-09.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * 
FROM &lt;data-g3.ttl&gt;
FROM NAMED &lt;data-g3.ttl&gt;{ 
   ?s ?p ?o
   GRAPH ?g { ?s ?q ?v }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-09.ttl">data-r2/dataset/dataset-09.ttl</a></p>
<hr/>
<h2><a name="dawg-dataset-09b">dataset-09b</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/10/09-dawg-minutes.html">http://www.w3.org/2007/10/09-dawg-minutes.html</a></div>
<p>Data: default and named (bnodes) / Query: common subjects</p>
<h3>Default Graph</h3>

<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-09b.rq">data-r2/dataset/dataset-09b.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * 
FROM &lt;data-g3-dup.ttl&gt;
FROM NAMED &lt;data-g3.ttl&gt;{ 
   ?s ?p ?o
   GRAPH ?g { ?s ?q ?v }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-09.ttl">data-r2/dataset/dataset-09.ttl</a></p>
<hr/>
<h2><a name="dawg-dataset-10">dataset-10</a></h2>
Query evaluation test

<p>Data: default and named (same data, with bnodes) / Query: common subjects</p>
<h3>Default Graph</h3>

<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-10.rq">data-r2/dataset/dataset-10.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * 
FROM &lt;data-g3.ttl&gt;
FROM NAMED &lt;data-g3.ttl&gt;
{ 
   ?s ?p ?o
   GRAPH ?g { ?s ?q ?v }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-10.ttl">data-r2/dataset/dataset-10.ttl</a></p>
<hr/>
<h2><a name="dawg-dataset-10b">dataset-10b</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/10/09-dawg-minutes.html">http://www.w3.org/2007/10/09-dawg-minutes.html</a></div>
<p>Data: default and named (same data, with bnodes) / Query: common subjects</p>
<h3>Default Graph</h3>

<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-10b.rq">data-r2/dataset/dataset-10b.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * 
FROM &lt;data-g3-dup.ttl&gt;
FROM NAMED &lt;data-g3.ttl&gt;
{ 
   ?s ?p ?o
   GRAPH ?g { ?s ?q ?v }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-10.ttl">data-r2/dataset/dataset-10.ttl</a></p>
<hr/>
<h2><a name="dawg-dataset-11">dataset-11</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html</a></div>
<p>Data: default and named (several) / Query: get everything</p>
<h3>Default Graph</h3>

<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-11.rq">data-r2/dataset/dataset-11.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * 
FROM &lt;data-g1.ttl&gt;
FROM NAMED &lt;data-g1.ttl&gt;
FROM NAMED &lt;data-g2.ttl&gt;
FROM NAMED &lt;data-g3.ttl&gt;
FROM NAMED &lt;data-g4.ttl&gt;
{ 
   { ?s ?p ?o }
  UNION
   { GRAPH ?g { ?s ?p ?o } }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-11.ttl">data-r2/dataset/dataset-11.ttl</a></p>
<hr/>
<h2><a name="dawg-dataset-12">dataset-12</a></h2>
Query evaluation test

<p>Data: default (several) and named (several) / Query: get everything</p>
<h3>Default Graph</h3>

<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-12.rq">data-r2/dataset/dataset-12.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * 
FROM &lt;data-g1.ttl&gt;
FROM &lt;data-g2.ttl&gt;
FROM &lt;data-g3.ttl&gt;
FROM &lt;data-g4.ttl&gt;
FROM NAMED &lt;data-g1.ttl&gt;
FROM NAMED &lt;data-g2.ttl&gt;
FROM NAMED &lt;data-g3.ttl&gt;
FROM NAMED &lt;data-g4.ttl&gt;
{ 
   { ?s ?p ?o }
  UNION
   { GRAPH ?g { ?s ?p ?o } }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-12.ttl">data-r2/dataset/dataset-12.ttl</a></p>
<hr/>
<h2><a name="dawg-dataset-12b">dataset-12b</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/10/09-dawg-minutes.html">http://www.w3.org/2007/10/09-dawg-minutes.html</a></div>
<p>Data: default (several) and named (several) / Query: get everything</p>
<h3>Default Graph</h3>

<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-12b.rq">data-r2/dataset/dataset-12b.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * 
FROM &lt;data-g1-dup.ttl&gt;
FROM &lt;data-g2-dup.ttl&gt;
FROM &lt;data-g3-dup.ttl&gt;
FROM &lt;data-g4-dup.ttl&gt;
FROM NAMED &lt;data-g1.ttl&gt;
FROM NAMED &lt;data-g2.ttl&gt;
FROM NAMED &lt;data-g3.ttl&gt;
FROM NAMED &lt;data-g4.ttl&gt;
{ 
   { ?s ?p ?o }
  UNION
   { GRAPH ?g { ?s ?p ?o } }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/dataset/dataset-12.ttl">data-r2/dataset/dataset-12.ttl</a></p>
<hr/>
<h2><a name="distinct-1">Numbers: Distinct</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/data-num.ttl">data-r2/distinct/data-num.ttl</a></p>
<div class="query">
@prefix :         &lt;http://example/&gt; .
@prefix xsd:      &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p1 &quot;1&quot;^^xsd:integer .
:x1 :p2 &quot;1&quot;^^xsd:integer .

:x2 :p1 &quot;1&quot;^^xsd:integer .
:x2 :p2 &quot;1&quot;^^xsd:integer .

:x3 :p1 &quot;01&quot;^^xsd:integer .
:x3 :p2 &quot;01&quot;^^xsd:integer .

:x4 :p1 &quot;+1&quot;^^xsd:integer .
:x4 :p2 &quot;+1&quot;^^xsd:integer .

:y1 :p1 &quot;1.0&quot;^^xsd:decimal .
:y1 :p2 &quot;1.0&quot;^^xsd:decimal .

:y2 :p1 &quot;+1.0&quot;^^xsd:decimal .
:y2 :p2 &quot;+1.0&quot;^^xsd:decimal .

:y3 :p1 &quot;01.0&quot;^^xsd:decimal .
:y3 :p2 &quot;01.0&quot;^^xsd:decimal .

:z1 :p1 &quot;1.0e0&quot;^^xsd:double .
:z1 :p2 &quot;1.0e0&quot;^^xsd:double .

:z2 :p1 &quot;1.0e0&quot;^^xsd:double .
:z2 :p2 &quot;1.0e0&quot;^^xsd:double .

:z3 :p1 &quot;1.3e0&quot;^^xsd:double .
:z3 :p2 &quot;1.3e0&quot;^^xsd:double .

:z4 :p1 &quot;1.3e0&quot;^^xsd:double .
:z5 :p1 &quot;1.3e0&quot;^^xsd:float .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/distinct-1.rq">data-r2/distinct/distinct-1.rq</a><br/>
<div class="query">
PREFIX :      &lt;http://example/&gt; 
PREFIX xsd:   &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT DISTINCT ?v
{
    ?x ?p ?v .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/distinct-num.srx">data-r2/distinct/distinct-num.srx</a></p>
<hr/>
<h2><a name="distinct-2">Strings: Distinct</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/data-str.ttl">data-r2/distinct/data-str.ttl</a></p>
<div class="query">
@prefix :         &lt;http://example/&gt; .
@prefix xsd:      &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;abc&quot; .
:x1 :q &quot;abc&quot; .

:x2 :p &quot;abc&quot;@en .
:x2 :q &quot;abc&quot;@en .

:x3 :p &quot;ABC&quot; .
:x3 :q &quot;ABC&quot; .

:x4 :p &quot;ABC&quot;@en .
:x4 :q &quot;ABC&quot;@en .


:x5 :p &quot;abc&quot;^^xsd:string .
:x5 :q &quot;abc&quot;^^xsd:string .
:x6 :p &quot;ABC&quot;^^xsd:string .
:x6 :q &quot;ABC&quot;^^xsd:string .

:x7 :p &quot;&quot; .
:x7 :q &quot;&quot; .

:x8 :p &quot;&quot;@en .
:x8 :q &quot;&quot;@en .

:x9 :p &quot;&quot;^^xsd:string .
:x9 :q &quot;&quot;^^xsd:string .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/distinct-1.rq">data-r2/distinct/distinct-1.rq</a><br/>
<div class="query">
PREFIX :      &lt;http://example/&gt; 
PREFIX xsd:   &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT DISTINCT ?v
{
    ?x ?p ?v .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/distinct-str.srx">data-r2/distinct/distinct-str.srx</a></p>
<hr/>
<h2><a name="distinct-3">Nodes: Distinct</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/data-node.ttl">data-r2/distinct/data-node.ttl</a></p>
<div class="query">
@prefix :         &lt;http://example/&gt; .
@prefix xsd:      &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p1 :z1 .
:x1 :p1 _:a .

:x1 :p2 :z1 .
:x1 :p2 _:a .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/distinct-1.rq">data-r2/distinct/distinct-1.rq</a><br/>
<div class="query">
PREFIX :      &lt;http://example/&gt; 
PREFIX xsd:   &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT DISTINCT ?v
{
    ?x ?p ?v .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/distinct-node.srx">data-r2/distinct/distinct-node.srx</a></p>
<hr/>
<h2><a name="distinct-4">Opt: Distinct</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/data-opt.ttl">data-r2/distinct/data-opt.ttl</a></p>
<div class="query">
@prefix :         &lt;http://example/&gt; .
@prefix xsd:      &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p1 :z1 .
:x1 :p1 :z2 .
:x1 :p1 _:a .

:x1 :p2 :z1 .
:x1 :p2 :z2 .
:x1 :p2 _:a .

:z1 :q  :r .
_:a :q  :s .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/distinct-2.rq">data-r2/distinct/distinct-2.rq</a><br/>
<div class="query">
PREFIX :      &lt;http://example/&gt; 
PREFIX xsd:   &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT DISTINCT ?v
{
    :x1 ?p ?o
    OPTIONAL { ?o :q ?v }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/distinct-opt.srx">data-r2/distinct/distinct-opt.srx</a></p>
<hr/>
<h2><a name="distinct-9">All: Distinct</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/data-all.ttl">data-r2/distinct/data-all.ttl</a></p>
<div class="query">
## data-num.ttl
@prefix :         &lt;http://example/&gt; .
@prefix xsd:      &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p1 &quot;1&quot;^^xsd:integer .
:x1 :p2 &quot;1&quot;^^xsd:integer .

:x2 :p1 &quot;1&quot;^^xsd:integer .
:x2 :p2 &quot;1&quot;^^xsd:integer .

:x3 :p1 &quot;01&quot;^^xsd:integer .
:x3 :p2 &quot;01&quot;^^xsd:integer .

:x4 :p1 &quot;+1&quot;^^xsd:integer .
:x4 :p2 &quot;+1&quot;^^xsd:integer .

:y1 :p1 &quot;1.0&quot;^^xsd:decimal .
:y1 :p2 &quot;1.0&quot;^^xsd:decimal .

:y2 :p1 &quot;+1.0&quot;^^xsd:decimal .
:y2 :p2 &quot;+1.0&quot;^^xsd:decimal .

:y3 :p1 &quot;01.0&quot;^^xsd:decimal .
:y3 :p2 &quot;01.0&quot;^^xsd:decimal .

:z1 :p1 &quot;1.0e0&quot;^^xsd:double .
:z1 :p2 &quot;1.0e0&quot;^^xsd:double .

:z2 :p1 &quot;1.0e0&quot;^^xsd:double .
:z2 :p2 &quot;1.0e0&quot;^^xsd:double .

:z3 :p1 &quot;1.3e0&quot;^^xsd:double .
:z3 :p2 &quot;1.3e0&quot;^^xsd:double .

:z4 :p1 &quot;1.3e0&quot;^^xsd:double .
:z5 :p1 &quot;1.3e0&quot;^^xsd:float .

## data-str.ttl

:x1 :p &quot;abc&quot; .
:x1 :q &quot;abc&quot; .

:x2 :p &quot;abc&quot;@en .
:x2 :q &quot;abc&quot;@en .

:x3 :p &quot;ABC&quot; .
:x3 :q &quot;ABC&quot; .

:x4 :p &quot;ABC&quot;@en .
:x4 :q &quot;ABC&quot;@en .


:x5 :p &quot;abc&quot;^^xsd:string .
:x5 :q &quot;abc&quot;^^xsd:string .
:x6 :p &quot;ABC&quot;^^xsd:string .
:x6 :q &quot;ABC&quot;^^xsd:string .

:x7 :p &quot;&quot; .
:x7 :q &quot;&quot; .

:x8 :p &quot;&quot;@en .
:x8 :q &quot;&quot;@en .

:x9 :p &quot;&quot;^^xsd:string .
:x9 :q &quot;&quot;^^xsd:string .

## data-node.ttl

:x1 :p1 :z1 .
:x1 :p1 _:a .

:x1 :p2 :z1 .
:x1 :p2 _:a .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/distinct-1.rq">data-r2/distinct/distinct-1.rq</a><br/>
<div class="query">
PREFIX :      &lt;http://example/&gt; 
PREFIX xsd:   &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT DISTINCT ?v
{
    ?x ?p ?v .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/distinct-all.srx">data-r2/distinct/distinct-all.srx</a></p>
<hr/>
<h2><a name="distinct-star-1">SELECT DISTINCT *</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0060/2007-08-07-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/data-star.ttl">data-r2/distinct/data-star.ttl</a></p>
<div class="query">
@prefix :         &lt;http://example/&gt; .
@prefix xsd:      &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;abc&quot; .
:x1 :q &quot;abc&quot; .
:x2 :p &quot;abc&quot; .



</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/distinct-star-1.rq">data-r2/distinct/distinct-star-1.rq</a><br/>
<div class="query">
PREFIX :         &lt;http://example/&gt; 
PREFIX xsd:      &lt;http://www.w3.org/2001/XMLSchema#&gt; 
SELECT DISTINCT * 
WHERE { 
  { ?s :p ?o } UNION { ?s :q ?o }
}


</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/distinct-star-1.srx">data-r2/distinct/distinct-star-1.srx</a></p>
<hr/>
<h2><a name="no-distinct-1">Numbers: No distinct</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/data-num.ttl">data-r2/distinct/data-num.ttl</a></p>
<div class="query">
@prefix :         &lt;http://example/&gt; .
@prefix xsd:      &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p1 &quot;1&quot;^^xsd:integer .
:x1 :p2 &quot;1&quot;^^xsd:integer .

:x2 :p1 &quot;1&quot;^^xsd:integer .
:x2 :p2 &quot;1&quot;^^xsd:integer .

:x3 :p1 &quot;01&quot;^^xsd:integer .
:x3 :p2 &quot;01&quot;^^xsd:integer .

:x4 :p1 &quot;+1&quot;^^xsd:integer .
:x4 :p2 &quot;+1&quot;^^xsd:integer .

:y1 :p1 &quot;1.0&quot;^^xsd:decimal .
:y1 :p2 &quot;1.0&quot;^^xsd:decimal .

:y2 :p1 &quot;+1.0&quot;^^xsd:decimal .
:y2 :p2 &quot;+1.0&quot;^^xsd:decimal .

:y3 :p1 &quot;01.0&quot;^^xsd:decimal .
:y3 :p2 &quot;01.0&quot;^^xsd:decimal .

:z1 :p1 &quot;1.0e0&quot;^^xsd:double .
:z1 :p2 &quot;1.0e0&quot;^^xsd:double .

:z2 :p1 &quot;1.0e0&quot;^^xsd:double .
:z2 :p2 &quot;1.0e0&quot;^^xsd:double .

:z3 :p1 &quot;1.3e0&quot;^^xsd:double .
:z3 :p2 &quot;1.3e0&quot;^^xsd:double .

:z4 :p1 &quot;1.3e0&quot;^^xsd:double .
:z5 :p1 &quot;1.3e0&quot;^^xsd:float .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/no-distinct-1.rq">data-r2/distinct/no-distinct-1.rq</a><br/>
<div class="query">
SELECT ?v
{
    ?x ?p ?v .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/no-distinct-num.srx">data-r2/distinct/no-distinct-num.srx</a></p>
<hr/>
<h2><a name="no-distinct-2">Strings: No distinct</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/data-str.ttl">data-r2/distinct/data-str.ttl</a></p>
<div class="query">
@prefix :         &lt;http://example/&gt; .
@prefix xsd:      &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;abc&quot; .
:x1 :q &quot;abc&quot; .

:x2 :p &quot;abc&quot;@en .
:x2 :q &quot;abc&quot;@en .

:x3 :p &quot;ABC&quot; .
:x3 :q &quot;ABC&quot; .

:x4 :p &quot;ABC&quot;@en .
:x4 :q &quot;ABC&quot;@en .


:x5 :p &quot;abc&quot;^^xsd:string .
:x5 :q &quot;abc&quot;^^xsd:string .
:x6 :p &quot;ABC&quot;^^xsd:string .
:x6 :q &quot;ABC&quot;^^xsd:string .

:x7 :p &quot;&quot; .
:x7 :q &quot;&quot; .

:x8 :p &quot;&quot;@en .
:x8 :q &quot;&quot;@en .

:x9 :p &quot;&quot;^^xsd:string .
:x9 :q &quot;&quot;^^xsd:string .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/no-distinct-1.rq">data-r2/distinct/no-distinct-1.rq</a><br/>
<div class="query">
SELECT ?v
{
    ?x ?p ?v .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/no-distinct-str.srx">data-r2/distinct/no-distinct-str.srx</a></p>
<hr/>
<h2><a name="no-distinct-3">Nodes: No distinct</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/data-node.ttl">data-r2/distinct/data-node.ttl</a></p>
<div class="query">
@prefix :         &lt;http://example/&gt; .
@prefix xsd:      &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p1 :z1 .
:x1 :p1 _:a .

:x1 :p2 :z1 .
:x1 :p2 _:a .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/no-distinct-1.rq">data-r2/distinct/no-distinct-1.rq</a><br/>
<div class="query">
SELECT ?v
{
    ?x ?p ?v .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/no-distinct-node.srx">data-r2/distinct/no-distinct-node.srx</a></p>
<hr/>
<h2><a name="no-distinct-4">Opt: No distinct</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/data-opt.ttl">data-r2/distinct/data-opt.ttl</a></p>
<div class="query">
@prefix :         &lt;http://example/&gt; .
@prefix xsd:      &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p1 :z1 .
:x1 :p1 :z2 .
:x1 :p1 _:a .

:x1 :p2 :z1 .
:x1 :p2 :z2 .
:x1 :p2 _:a .

:z1 :q  :r .
_:a :q  :s .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/no-distinct-2.rq">data-r2/distinct/no-distinct-2.rq</a><br/>
<div class="query">
PREFIX :      &lt;http://example/&gt; 
PREFIX xsd:   &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT ?v
{
    :x1 ?p ?o
    OPTIONAL { ?o :q ?v }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/no-distinct-opt.srx">data-r2/distinct/no-distinct-opt.srx</a></p>
<hr/>
<h2><a name="no-distinct-9">All: No distinct</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/data-all.ttl">data-r2/distinct/data-all.ttl</a></p>
<div class="query">
## data-num.ttl
@prefix :         &lt;http://example/&gt; .
@prefix xsd:      &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p1 &quot;1&quot;^^xsd:integer .
:x1 :p2 &quot;1&quot;^^xsd:integer .

:x2 :p1 &quot;1&quot;^^xsd:integer .
:x2 :p2 &quot;1&quot;^^xsd:integer .

:x3 :p1 &quot;01&quot;^^xsd:integer .
:x3 :p2 &quot;01&quot;^^xsd:integer .

:x4 :p1 &quot;+1&quot;^^xsd:integer .
:x4 :p2 &quot;+1&quot;^^xsd:integer .

:y1 :p1 &quot;1.0&quot;^^xsd:decimal .
:y1 :p2 &quot;1.0&quot;^^xsd:decimal .

:y2 :p1 &quot;+1.0&quot;^^xsd:decimal .
:y2 :p2 &quot;+1.0&quot;^^xsd:decimal .

:y3 :p1 &quot;01.0&quot;^^xsd:decimal .
:y3 :p2 &quot;01.0&quot;^^xsd:decimal .

:z1 :p1 &quot;1.0e0&quot;^^xsd:double .
:z1 :p2 &quot;1.0e0&quot;^^xsd:double .

:z2 :p1 &quot;1.0e0&quot;^^xsd:double .
:z2 :p2 &quot;1.0e0&quot;^^xsd:double .

:z3 :p1 &quot;1.3e0&quot;^^xsd:double .
:z3 :p2 &quot;1.3e0&quot;^^xsd:double .

:z4 :p1 &quot;1.3e0&quot;^^xsd:double .
:z5 :p1 &quot;1.3e0&quot;^^xsd:float .

## data-str.ttl

:x1 :p &quot;abc&quot; .
:x1 :q &quot;abc&quot; .

:x2 :p &quot;abc&quot;@en .
:x2 :q &quot;abc&quot;@en .

:x3 :p &quot;ABC&quot; .
:x3 :q &quot;ABC&quot; .

:x4 :p &quot;ABC&quot;@en .
:x4 :q &quot;ABC&quot;@en .


:x5 :p &quot;abc&quot;^^xsd:string .
:x5 :q &quot;abc&quot;^^xsd:string .
:x6 :p &quot;ABC&quot;^^xsd:string .
:x6 :q &quot;ABC&quot;^^xsd:string .

:x7 :p &quot;&quot; .
:x7 :q &quot;&quot; .

:x8 :p &quot;&quot;@en .
:x8 :q &quot;&quot;@en .

:x9 :p &quot;&quot;^^xsd:string .
:x9 :q &quot;&quot;^^xsd:string .

## data-node.ttl

:x1 :p1 :z1 .
:x1 :p1 _:a .

:x1 :p2 :z1 .
:x1 :p2 _:a .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/no-distinct-1.rq">data-r2/distinct/no-distinct-1.rq</a><br/>
<div class="query">
SELECT ?v
{
    ?x ?p ?v .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/distinct/no-distinct-all.srx">data-r2/distinct/no-distinct-all.srx</a></p>
<hr/>
<h2><a name="reduced-1">SELECT REDUCED *</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007OctDec/att-0069/13-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007OctDec/att-0069/13-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/reduced/reduced-star.ttl">data-r2/reduced/reduced-star.ttl</a></p>
<div class="query">
@prefix :         &lt;http://example/&gt; .
@prefix xsd:      &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;abc&quot; .
:x1 :q &quot;abc&quot; .
:x2 :p &quot;abc&quot; .



</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/reduced/reduced-1.rq">data-r2/reduced/reduced-1.rq</a><br/>
<div class="query">
PREFIX :         &lt;http://example/&gt; 
PREFIX xsd:      &lt;http://www.w3.org/2001/XMLSchema#&gt; 
SELECT REDUCED * 
WHERE { 
  { ?s :p ?o } UNION { ?s :q ?o }
}


</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/reduced/reduced-1.srx">data-r2/reduced/reduced-1.srx</a></p>
<hr/>
<h2><a name="reduced-2">SELECT REDUCED ?x with strings</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007OctDec/att-0069/13-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007OctDec/att-0069/13-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/reduced/reduced-str.ttl">data-r2/reduced/reduced-str.ttl</a></p>
<div class="query">
@prefix :         &lt;http://example/&gt; .
@prefix xsd:      &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;abc&quot; .
:x1 :q &quot;abc&quot; .

:x2 :p &quot;abc&quot;@en .
:x2 :q &quot;abc&quot;@en .

:x3 :p &quot;ABC&quot; .
:x3 :q &quot;ABC&quot; .

:x4 :p &quot;ABC&quot;@en .
:x4 :q &quot;ABC&quot;@en .


:x5 :p &quot;abc&quot;^^xsd:string .
:x5 :q &quot;abc&quot;^^xsd:string .
:x6 :p &quot;ABC&quot;^^xsd:string .
:x6 :q &quot;ABC&quot;^^xsd:string .

:x7 :p &quot;&quot; .
:x7 :q &quot;&quot; .

:x8 :p &quot;&quot;@en .
:x8 :q &quot;&quot;@en .

:x9 :p &quot;&quot;^^xsd:string .
:x9 :q &quot;&quot;^^xsd:string .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/reduced/reduced-2.rq">data-r2/reduced/reduced-2.rq</a><br/>
<div class="query">
PREFIX :      &lt;http://example/&gt; 
PREFIX xsd:   &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT REDUCED ?v
{
    ?x ?p ?v .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/reduced/reduced-2.srx">data-r2/reduced/reduced-2.srx</a></p>
<hr/>
<h2><a name="dawg-datatype-1">datatype-1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-builtin-1.ttl">data-r2/expr-builtin/data-builtin-1.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .
:xp2 :p  &quot;&quot; .

:xu :p  :z .

:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/q-datatype-1.rq">data-r2/expr-builtin/q-datatype-1.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/things#&gt;
SELECT  ?x ?v
WHERE
    { ?x :p ?v . 
      FILTER ( datatype(?v) = xsd:double ) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-datatype-1.ttl">data-r2/expr-builtin/result-datatype-1.ttl</a></p>
<hr/>
<h2><a name="dawg-datatype-2">datatype-2 : Literals with a datatype</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006</a></div>
<p>updated from original test case: eliminated ordering from test</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-builtin-2.ttl">data-r2/expr-builtin/data-builtin-2.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p  &quot;string&quot; .
:x2 :p  &quot;string&quot;^^xsd:string .
:x3 :p  &quot;string&quot;@en .
:x4 :p  &quot;lex&quot;^^:unknownType .
:x5 :p  &quot;1234&quot;^^xsd:integer .
:x6 :p  &lt;http://example/iri&gt; .
:x7 :p  _:bNode .





</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/q-datatype-2.rq">data-r2/expr-builtin/q-datatype-2.rq</a><br/>
<div class="query">
# Which literals have a datatype and which are errors.

PREFIX : &lt;http://example/&gt; 
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT ?x
{ ?x :p ?v . 
  FILTER(  datatype(?v) != &lt;http://example/NotADataTypeIRI&gt; ) 
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-datatype-2.srx">data-r2/expr-builtin/result-datatype-2.srx</a></p>
<hr/>
<h2><a name="dawg-datatype-3">datatype-3 : Literals with a datatype of xsd:string</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006</a></div>
<p>updated from original test case: eliminated ordering from test</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-builtin-2.ttl">data-r2/expr-builtin/data-builtin-2.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p  &quot;string&quot; .
:x2 :p  &quot;string&quot;^^xsd:string .
:x3 :p  &quot;string&quot;@en .
:x4 :p  &quot;lex&quot;^^:unknownType .
:x5 :p  &quot;1234&quot;^^xsd:integer .
:x6 :p  &lt;http://example/iri&gt; .
:x7 :p  _:bNode .





</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/q-datatype-3.rq">data-r2/expr-builtin/q-datatype-3.rq</a><br/>
<div class="query">
# Whichliterals have xsd:string as a datatype

PREFIX : &lt;http://example/&gt; 
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT ?x
{ ?x :p ?v . 
  FILTER( datatype(?v) = xsd:string ) 
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-datatype-3.srx">data-r2/expr-builtin/result-datatype-3.srx</a></p>
<hr/>
<h2><a name="dawg-isBlank-1">isBlank-1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-builtin-1.ttl">data-r2/expr-builtin/data-builtin-1.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .
:xp2 :p  &quot;&quot; .

:xu :p  :z .

:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/q-blank-1.rq">data-r2/expr-builtin/q-blank-1.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/things#&gt;
SELECT  ?x ?v
WHERE
    { ?x :p ?v . 
      FILTER isBlank(?v) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-blank-1.ttl">data-r2/expr-builtin/result-blank-1.ttl</a></p>
<hr/>
<h2><a name="dawg-isIRI-1">isIRI-1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-builtin-1.ttl">data-r2/expr-builtin/data-builtin-1.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .
:xp2 :p  &quot;&quot; .

:xu :p  :z .

:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/q-iri-1.rq">data-r2/expr-builtin/q-iri-1.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/things#&gt;
SELECT  ?x ?v
WHERE
    { ?x :p ?v . 
      FILTER isIRI(?v) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-iri-1.ttl">data-r2/expr-builtin/result-iri-1.ttl</a></p>
<hr/>
<h2><a name="dawg-isLiteral-1">isLiteral</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-builtin-2.ttl">data-r2/expr-builtin/data-builtin-2.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p  &quot;string&quot; .
:x2 :p  &quot;string&quot;^^xsd:string .
:x3 :p  &quot;string&quot;@en .
:x4 :p  &quot;lex&quot;^^:unknownType .
:x5 :p  &quot;1234&quot;^^xsd:integer .
:x6 :p  &lt;http://example/iri&gt; .
:x7 :p  _:bNode .





</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/q-isliteral-1.rq">data-r2/expr-builtin/q-isliteral-1.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example/&gt;
SELECT  ?x 
WHERE
    { ?x :p ?v . 
      FILTER isLiteral(?v) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-isliteral-1.ttl">data-r2/expr-builtin/result-isliteral-1.ttl</a></p>
<hr/>
<h2><a name="dawg-isURI-1">isURI-1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-builtin-1.ttl">data-r2/expr-builtin/data-builtin-1.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .
:xp2 :p  &quot;&quot; .

:xu :p  :z .

:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/q-uri-1.rq">data-r2/expr-builtin/q-uri-1.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/things#&gt;
SELECT  ?x ?v
WHERE
    { ?x :p ?v . 
      FILTER isURI(?v) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-uri-1.ttl">data-r2/expr-builtin/result-uri-1.ttl</a></p>
<hr/>
<h2><a name="dawg-lang-1">lang-1 : Literals with a lang tag of some kind</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006</a></div>
<p>updated from original test case: eliminated ordering from test</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-builtin-2.ttl">data-r2/expr-builtin/data-builtin-2.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p  &quot;string&quot; .
:x2 :p  &quot;string&quot;^^xsd:string .
:x3 :p  &quot;string&quot;@en .
:x4 :p  &quot;lex&quot;^^:unknownType .
:x5 :p  &quot;1234&quot;^^xsd:integer .
:x6 :p  &lt;http://example/iri&gt; .
:x7 :p  _:bNode .





</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/q-lang-1.rq">data-r2/expr-builtin/q-lang-1.rq</a><br/>
<div class="query">
# Test which things have a lang tag of some form.

PREFIX : &lt;http://example/&gt; 
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT ?x
{ ?x :p ?v . 
  FILTER ( lang(?v) != &#39;@NotALangTag@&#39; )
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-lang-1.srx">data-r2/expr-builtin/result-lang-1.srx</a></p>
<hr/>
<h2><a name="dawg-lang-2">lang-2 : Literals with a lang tag of ''</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006</a></div>
<p>updated from original test case: eliminated ordering from test</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-builtin-2.ttl">data-r2/expr-builtin/data-builtin-2.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p  &quot;string&quot; .
:x2 :p  &quot;string&quot;^^xsd:string .
:x3 :p  &quot;string&quot;@en .
:x4 :p  &quot;lex&quot;^^:unknownType .
:x5 :p  &quot;1234&quot;^^xsd:integer .
:x6 :p  &lt;http://example/iri&gt; .
:x7 :p  _:bNode .





</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/q-lang-2.rq">data-r2/expr-builtin/q-lang-2.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT ?x
{ ?x :p ?v . 
  FILTER ( lang(?v) = &#39;&#39; )
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-lang-2.srx">data-r2/expr-builtin/result-lang-2.srx</a></p>
<hr/>
<h2><a name="dawg-lang-3">lang-3 : Graph matching with lang tag being a different case</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006</a></div>
<p>updated from original test case: eliminated ordering from test</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-builtin-2.ttl">data-r2/expr-builtin/data-builtin-2.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p  &quot;string&quot; .
:x2 :p  &quot;string&quot;^^xsd:string .
:x3 :p  &quot;string&quot;@en .
:x4 :p  &quot;lex&quot;^^:unknownType .
:x5 :p  &quot;1234&quot;^^xsd:integer .
:x6 :p  &lt;http://example/iri&gt; .
:x7 :p  _:bNode .





</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/q-lang-3.rq">data-r2/expr-builtin/q-lang-3.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT ?x
{ ?x :p &quot;string&quot;@EN
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-lang-3.srx">data-r2/expr-builtin/result-lang-3.srx</a></p>
<hr/>
<h2><a name="dawg-langMatches-1">LangMatches-1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006</a></div>
<p>langMatches(lang(?v), 'en-GB') matches 'abc'@en-gb</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-langMatches.ttl">data-r2/expr-builtin/data-langMatches.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/#&gt; .

:x :p1 &quot;abc&quot; .
:x :p2 &lt;abc&gt; .
:x :p3 &quot;abc&quot;@en .
:x :p4 &quot;abc&quot;@en-gb .
:x :p5 &quot;abc&quot;@fr .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/q-langMatches-1.rq">data-r2/expr-builtin/q-langMatches-1.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/#&gt;

SELECT *
{ :x ?p ?v . FILTER langMatches(lang(?v), &quot;en-GB&quot;) . }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-langMatches-1.ttl">data-r2/expr-builtin/result-langMatches-1.ttl</a></p>
<hr/>
<h2><a name="dawg-langMatches-2">LangMatches-2</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006</a></div>
<p>langMatches(lang(?v), 'en') matches 'abc'@en, 'abc'@en-gb</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-langMatches.ttl">data-r2/expr-builtin/data-langMatches.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/#&gt; .

:x :p1 &quot;abc&quot; .
:x :p2 &lt;abc&gt; .
:x :p3 &quot;abc&quot;@en .
:x :p4 &quot;abc&quot;@en-gb .
:x :p5 &quot;abc&quot;@fr .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/q-langMatches-2.rq">data-r2/expr-builtin/q-langMatches-2.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/#&gt;

SELECT *
{ :x ?p ?v . FILTER langMatches(lang(?v), &quot;en&quot;) . }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-langMatches-2.ttl">data-r2/expr-builtin/result-langMatches-2.ttl</a></p>
<hr/>
<h2><a name="dawg-langMatches-3">LangMatches-3</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006</a></div>
<p>langMatches(lang(?v), '*') matches 'abc'@en, 'abc'@en-gb, 'abc'@fr</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-langMatches.ttl">data-r2/expr-builtin/data-langMatches.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/#&gt; .

:x :p1 &quot;abc&quot; .
:x :p2 &lt;abc&gt; .
:x :p3 &quot;abc&quot;@en .
:x :p4 &quot;abc&quot;@en-gb .
:x :p5 &quot;abc&quot;@fr .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/q-langMatches-3.rq">data-r2/expr-builtin/q-langMatches-3.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/#&gt;

SELECT *
{ :x ?p ?v . FILTER langMatches(lang(?v), &quot;*&quot;) . }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-langMatches-3.ttl">data-r2/expr-builtin/result-langMatches-3.ttl</a></p>
<hr/>
<h2><a name="dawg-langMatches-4">LangMatches-4</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006</a></div>
<p>! langMatches(lang(?v), '*') matches 'abc'</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-langMatches.ttl">data-r2/expr-builtin/data-langMatches.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/#&gt; .

:x :p1 &quot;abc&quot; .
:x :p2 &lt;abc&gt; .
:x :p3 &quot;abc&quot;@en .
:x :p4 &quot;abc&quot;@en-gb .
:x :p5 &quot;abc&quot;@fr .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/q-langMatches-4.rq">data-r2/expr-builtin/q-langMatches-4.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/#&gt;

SELECT *
{ :x ?p ?v . FILTER (! langMatches(lang(?v), &quot;*&quot;)) . }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-langMatches-4.ttl">data-r2/expr-builtin/result-langMatches-4.ttl</a></p>
<hr/>
<h2><a name="dawg-langMatches-basic">LangMatches-basic</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html</a></div>
<p>the basic range 'de-de' does not match 'de-Latn-de'</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-langMatches-de.ttl">data-r2/expr-builtin/data-langMatches-de.ttl</a></p>
<div class="query">
# data-langMatches-de.ttl
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix : &lt;http://example.org/#&gt; .

:x :p3 &quot;abc&quot;@de .
:x :p4 &quot;abc&quot;@de-de .
:x :p5 &quot;abc&quot;@de-latn-de .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/q-langMatches-de-de.rq">data-r2/expr-builtin/q-langMatches-de-de.rq</a><br/>
<div class="query">
# q-langMatches-de-de.rq
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX : &lt;http://example.org/#&gt;

SELECT *
{ :x ?p ?v . FILTER langMatches(lang(?v), &quot;de-de&quot;) . }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-langMatches-de.ttl">data-r2/expr-builtin/result-langMatches-de.ttl</a></p>
<hr/>
<h2><a name="dawg-str-1">str-1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-builtin-1.ttl">data-r2/expr-builtin/data-builtin-1.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .
:xp2 :p  &quot;&quot; .

:xu :p  :z .

:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/q-str-1.rq">data-r2/expr-builtin/q-str-1.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/things#&gt;
SELECT  ?x ?v
WHERE
    { ?x :p ?v . 
      FILTER ( str(?v) = &quot;1&quot; ) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-str-1.ttl">data-r2/expr-builtin/result-str-1.ttl</a></p>
<hr/>
<h2><a name="dawg-str-2">str-2</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-builtin-1.ttl">data-r2/expr-builtin/data-builtin-1.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .
:xp2 :p  &quot;&quot; .

:xu :p  :z .

:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/q-str-2.rq">data-r2/expr-builtin/q-str-2.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/things#&gt;
SELECT  ?x ?v
WHERE
    { ?x :p ?v . 
      FILTER ( str(?v) = &quot;01&quot; ) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-str-2.ttl">data-r2/expr-builtin/result-str-2.ttl</a></p>
<hr/>
<h2><a name="dawg-str-3">str-3</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-builtin-1.ttl">data-r2/expr-builtin/data-builtin-1.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .
:xp2 :p  &quot;&quot; .

:xu :p  :z .

:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/q-str-3.rq">data-r2/expr-builtin/q-str-3.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/things#&gt;
SELECT  ?x ?v
WHERE
    { ?x :p ?v . 
      FILTER ( str(?v) = &quot;zzz&quot; ) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-str-3.ttl">data-r2/expr-builtin/result-str-3.ttl</a></p>
<hr/>
<h2><a name="dawg-str-4">str-4</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-builtin-1.ttl">data-r2/expr-builtin/data-builtin-1.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .
:xp2 :p  &quot;&quot; .

:xu :p  :z .

:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/q-str-4.rq">data-r2/expr-builtin/q-str-4.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/things#&gt;
SELECT  ?x ?v
WHERE
    { ?x :p ?v . 
      FILTER ( str(?v) = &quot;&quot;  ) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-str-4.ttl">data-r2/expr-builtin/result-str-4.ttl</a></p>
<hr/>
<h2><a name="lang-case-insensitive-eq">lang-case-insensitive-eq</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>'xyz'@en = 'xyz'@EN</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/lang-case-sensitivity.ttl">data-r2/expr-builtin/lang-case-sensitivity.ttl</a></p>
<div class="query">
# Data: minimal test of plain literal language sensitivity
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix     : &lt;http://example/&gt; .

:x2 :p &quot;xyz&quot;@en .
:x3 :p &quot;xyz&quot;@EN .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/lang-case-sensitivity-eq.rq">data-r2/expr-builtin/lang-case-sensitivity-eq.rq</a><br/>
<div class="query">
# Test: &#39;xyz&#39;@en = &#39;xyz&#39;@EN
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX     :    &lt;http://example/&gt;

SELECT *
{
    ?x1 :p ?v1 .
    ?x2 :p ?v2 .
    FILTER ( ?v1 = ?v2 )
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/lang-case-insensitive-eq.srx">data-r2/expr-builtin/lang-case-insensitive-eq.srx</a></p>
<hr/>
<h2><a name="lang-case-insensitive-ne">lang-case-insensitive-ne</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>'xyz'@en != 'xyz'@EN</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/lang-case-sensitivity.ttl">data-r2/expr-builtin/lang-case-sensitivity.ttl</a></p>
<div class="query">
# Data: minimal test of plain literal language sensitivity
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix     : &lt;http://example/&gt; .

:x2 :p &quot;xyz&quot;@en .
:x3 :p &quot;xyz&quot;@EN .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/lang-case-sensitivity-ne.rq">data-r2/expr-builtin/lang-case-sensitivity-ne.rq</a><br/>
<div class="query">
# Test: &#39;xyz&#39;@en != &#39;xyz&#39;@EN
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX     :    &lt;http://example/&gt;
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT *
{
    ?x1 :p ?v1 .
    ?x2 :p ?v2 .
    FILTER ( ?v1 != ?v2 )
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/lang-case-insensitive-ne.srx">data-r2/expr-builtin/lang-case-insensitive-ne.srx</a></p>
<hr/>
<h2><a name="sameTerm-eq">sameTerm-eq</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html</a></div>
<p>sameTerm(?v1, ?v2) && ?v1 = ?v2</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-builtin-1.ttl">data-r2/expr-builtin/data-builtin-1.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .
:xp2 :p  &quot;&quot; .

:xu :p  :z .

:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/sameTerm-eq.rq">data-r2/expr-builtin/sameTerm-eq.rq</a><br/>
<div class="query">
# Test: sameTerm and eq
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX     :    &lt;http://example.org/things#&gt;

SELECT *
{
    ?x1 :p ?v1 .
    ?x2 :p ?v2 .
    FILTER ( sameTerm(?v1, ?v2) &amp;&amp; ?v1 = ?v2 )
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-sameTerm-eq.ttl">data-r2/expr-builtin/result-sameTerm-eq.ttl</a></p>
<hr/>
<h2><a name="sameTerm-not-eq">sameTerm-not-eq</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html</a></div>
<p>!sameTerm(?v1, ?v2) && ?v1 = ?v2</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-builtin-1.ttl">data-r2/expr-builtin/data-builtin-1.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .
:xp2 :p  &quot;&quot; .

:xu :p  :z .

:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/sameTerm-not-eq.rq">data-r2/expr-builtin/sameTerm-not-eq.rq</a><br/>
<div class="query">
# Test: !sameTerm and eq
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX     :    &lt;http://example.org/things#&gt;

SELECT *
{
    ?x1 :p ?v1 .
    ?x2 :p ?v2 .
    FILTER ( !sameTerm(?v1, ?v2) &amp;&amp; ?v1 = ?v2 )
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-sameTerm-not-eq.ttl">data-r2/expr-builtin/result-sameTerm-not-eq.ttl</a></p>
<hr/>
<h2><a name="sameTerm-simple">sameTerm-simple</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html</a></div>
<p>sameTerm(?v1, ?v2)</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/data-builtin-1.ttl">data-r2/expr-builtin/data-builtin-1.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .
:xp2 :p  &quot;&quot; .

:xu :p  :z .

:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/sameTerm.rq">data-r2/expr-builtin/sameTerm.rq</a><br/>
<div class="query">
# Test: sameTerm
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX     :    &lt;http://example.org/things#&gt;

SELECT *
{
    ?x1 :p ?v1 .
    ?x2 :p ?v2 .
    FILTER sameTerm(?v1, ?v2)
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-builtin/result-sameTerm.ttl">data-r2/expr-builtin/result-sameTerm.ttl</a></p>
<hr/>
<h2><a name="eq-1">Equality 1-1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>= in FILTER expressions is value equality</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/data-eq.ttl">data-r2/expr-equals/data-eq.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

## :xdec1 :p  &quot;1.0&quot;^^xsd:decimal .
## :xdec2 :p  &quot;1&quot;^^xsd:decimal .
## :xdec3 :p  &quot;01&quot;^^xsd:decimal .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .

:xu :p  :z .

#:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/query-eq-1.rq">data-r2/expr-equals/query-eq-1.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/things#&gt;
SELECT  ?x
WHERE
    { ?x :p ?v . 
      FILTER ( ?v = 1 ) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/result-eq-1.ttl">data-r2/expr-equals/result-eq-1.ttl</a></p>
<hr/>
<h2><a name="eq-2">Equality 1-2</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>= in FILTER expressions is value equality</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/data-eq.ttl">data-r2/expr-equals/data-eq.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

## :xdec1 :p  &quot;1.0&quot;^^xsd:decimal .
## :xdec2 :p  &quot;1&quot;^^xsd:decimal .
## :xdec3 :p  &quot;01&quot;^^xsd:decimal .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .

:xu :p  :z .

#:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/query-eq-2.rq">data-r2/expr-equals/query-eq-2.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/things#&gt;
SELECT  ?x
WHERE
    { ?x :p ?v . 
      FILTER ( ?v = 1.0e0 )  .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/result-eq-2.ttl">data-r2/expr-equals/result-eq-2.ttl</a></p>
<hr/>
<h2><a name="eq-2-1">Equality - 2 var - test equals</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>= in FILTER is value equality</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/data-eq.ttl">data-r2/expr-equals/data-eq.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

## :xdec1 :p  &quot;1.0&quot;^^xsd:decimal .
## :xdec2 :p  &quot;1&quot;^^xsd:decimal .
## :xdec3 :p  &quot;01&quot;^^xsd:decimal .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .

:xu :p  :z .

#:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/query-eq2-1.rq">data-r2/expr-equals/query-eq2-1.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/things#&gt;
SELECT  ?v1 ?v2
WHERE
    { ?x1 :p ?v1 .
      ?x2 :p ?v2 . 
      FILTER ( ?v1 = ?v2 ) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/result-eq2-1.ttl">data-r2/expr-equals/result-eq2-1.ttl</a></p>
<hr/>
<h2><a name="eq-2-2">Equality - 2 var - test not equals </a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>!= in FILTER is value inequality</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/data-eq.ttl">data-r2/expr-equals/data-eq.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

## :xdec1 :p  &quot;1.0&quot;^^xsd:decimal .
## :xdec2 :p  &quot;1&quot;^^xsd:decimal .
## :xdec3 :p  &quot;01&quot;^^xsd:decimal .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .

:xu :p  :z .

#:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/query-eq2-1.rq">data-r2/expr-equals/query-eq2-1.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/things#&gt;
SELECT  ?v1 ?v2
WHERE
    { ?x1 :p ?v1 .
      ?x2 :p ?v2 . 
      FILTER ( ?v1 = ?v2 ) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/result-eq2-1.ttl">data-r2/expr-equals/result-eq2-1.ttl</a></p>
<hr/>
<h2><a name="eq-3">Equality 1-3</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>Numerics are not value-equivalent to plain literals</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/data-eq.ttl">data-r2/expr-equals/data-eq.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

## :xdec1 :p  &quot;1.0&quot;^^xsd:decimal .
## :xdec2 :p  &quot;1&quot;^^xsd:decimal .
## :xdec3 :p  &quot;01&quot;^^xsd:decimal .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .

:xu :p  :z .

#:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/query-eq-3.rq">data-r2/expr-equals/query-eq-3.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/things#&gt;
SELECT  ?x
WHERE
    { ?x :p ?v . 
      FILTER ( ?v = &quot;1&quot; ) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/result-eq-3.ttl">data-r2/expr-equals/result-eq-3.ttl</a></p>
<hr/>
<h2><a name="eq-4">Equality 1-4</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>= compares plain literals and unknown types with the same lexical form as false</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/data-eq.ttl">data-r2/expr-equals/data-eq.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

## :xdec1 :p  &quot;1.0&quot;^^xsd:decimal .
## :xdec2 :p  &quot;1&quot;^^xsd:decimal .
## :xdec3 :p  &quot;01&quot;^^xsd:decimal .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .

:xu :p  :z .

#:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/query-eq-4.rq">data-r2/expr-equals/query-eq-4.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/things#&gt;
SELECT  ?x
WHERE
    { ?x :p ?v . 
      FILTER ( ?v = &quot;zzz&quot; ) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/result-eq-4.ttl">data-r2/expr-equals/result-eq-4.ttl</a></p>
<hr/>
<h2><a name="eq-5">Equality 1-5</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>= on IRI terms</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/data-eq.ttl">data-r2/expr-equals/data-eq.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

## :xdec1 :p  &quot;1.0&quot;^^xsd:decimal .
## :xdec2 :p  &quot;1&quot;^^xsd:decimal .
## :xdec3 :p  &quot;01&quot;^^xsd:decimal .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .

:xu :p  :z .

#:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/query-eq-5.rq">data-r2/expr-equals/query-eq-5.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/things#&gt;
SELECT  ?x
WHERE
    { ?x :p ?v . 
      FILTER ( ?v = :z  ) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/result-eq-5.ttl">data-r2/expr-equals/result-eq-5.ttl</a></p>
<hr/>
<h2><a name="eq-graph-1">Equality 1-1 -- graph</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>Graph pattern matching matches exact terms, not values</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/data-eq.ttl">data-r2/expr-equals/data-eq.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

## :xdec1 :p  &quot;1.0&quot;^^xsd:decimal .
## :xdec2 :p  &quot;1&quot;^^xsd:decimal .
## :xdec3 :p  &quot;01&quot;^^xsd:decimal .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .

:xu :p  :z .

#:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/query-eq-graph-1.rq">data-r2/expr-equals/query-eq-graph-1.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/things#&gt;
SELECT  ?x
WHERE
    { ?x :p 1 . 
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/result-eq-graph-1.ttl">data-r2/expr-equals/result-eq-graph-1.ttl</a></p>
<hr/>
<h2><a name="eq-graph-2">Equality 1-2 -- graph</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>Graph pattern matching matches exact terms, not values</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/data-eq.ttl">data-r2/expr-equals/data-eq.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

## :xdec1 :p  &quot;1.0&quot;^^xsd:decimal .
## :xdec2 :p  &quot;1&quot;^^xsd:decimal .
## :xdec3 :p  &quot;01&quot;^^xsd:decimal .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .

:xu :p  :z .

#:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/query-eq-graph-2.rq">data-r2/expr-equals/query-eq-graph-2.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/things#&gt;
SELECT  ?x
WHERE
    { ?x :p 1.0e0 .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/result-eq-graph-2.ttl">data-r2/expr-equals/result-eq-graph-2.ttl</a></p>
<hr/>
<h2><a name="eq-graph-3">Equality 1-3 -- graph</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>Graph pattern matching matches exact terms, not values</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/data-eq.ttl">data-r2/expr-equals/data-eq.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

## :xdec1 :p  &quot;1.0&quot;^^xsd:decimal .
## :xdec2 :p  &quot;1&quot;^^xsd:decimal .
## :xdec3 :p  &quot;01&quot;^^xsd:decimal .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .

:xu :p  :z .

#:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/query-eq-graph-3.rq">data-r2/expr-equals/query-eq-graph-3.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/things#&gt;
SELECT  ?x
WHERE
    { ?x :p &quot;1&quot;
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/result-eq-graph-3.ttl">data-r2/expr-equals/result-eq-graph-3.ttl</a></p>
<hr/>
<h2><a name="eq-graph-4">Equality 1-4 -- graph</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>Graph pattern matching matches exact terms, not values</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/data-eq.ttl">data-r2/expr-equals/data-eq.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

## :xdec1 :p  &quot;1.0&quot;^^xsd:decimal .
## :xdec2 :p  &quot;1&quot;^^xsd:decimal .
## :xdec3 :p  &quot;01&quot;^^xsd:decimal .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .

:xu :p  :z .

#:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/query-eq-graph-4.rq">data-r2/expr-equals/query-eq-graph-4.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/things#&gt;
SELECT  ?x
WHERE
    { ?x :p &quot;zzz&quot; .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/result-eq-graph-4.ttl">data-r2/expr-equals/result-eq-graph-4.ttl</a></p>
<hr/>
<h2><a name="eq-graph-5">Equality 1-5 -- graph</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/19-dawg-minutes.html">http://www.w3.org/2007/06/19-dawg-minutes.html</a></div>
<p>Graph pattern matching matches exact terms, not values</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/data-eq.ttl">data-r2/expr-equals/data-eq.ttl</a></p>
<div class="query">
@prefix    :        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:xi1 :p  &quot;1&quot;^^xsd:integer .
:xi2 :p  &quot;1&quot;^^xsd:integer .
:xi3 :p  &quot;01&quot;^^xsd:integer .

:xd1 :p  &quot;1.0e0&quot;^^xsd:double .
:xd2 :p  &quot;1.0&quot;^^xsd:double .
:xd3 :p  &quot;1&quot;^^xsd:double .

## :xdec1 :p  &quot;1.0&quot;^^xsd:decimal .
## :xdec2 :p  &quot;1&quot;^^xsd:decimal .
## :xdec3 :p  &quot;01&quot;^^xsd:decimal .

:xt1 :p  &quot;zzz&quot;^^:myType .

:xp1 :p  &quot;zzz&quot; .
:xp2 :p  &quot;1&quot; .

:xu :p  :z .

#:xb :p  _:a .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/query-eq-graph-5.rq">data-r2/expr-equals/query-eq-graph-5.rq</a><br/>
<div class="query">
PREFIX  xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
PREFIX  : &lt;http://example.org/things#&gt;
SELECT  ?x
WHERE
    { ?x :p ?v . 
      FILTER ( ?v = :z  ) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-equals/result-eq-graph-5.ttl">data-r2/expr-equals/result-eq-graph-5.ttl</a></p>
<hr/>
<h2><a name="ge-1">Greater-than or equals</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html</a></div>
<p>>= in FILTER expressions</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/data.ttl">data-r2/expr-ops/data.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;1&quot;^^xsd:integer .
:x2 :p &quot;2&quot;^^xsd:integer .
:x3 :p &quot;3&quot;^^xsd:integer .
:x4 :p &quot;4&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/query-ge-1.rq">data-r2/expr-ops/query-ge-1.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT ?s WHERE {
    ?s :p ?o .
    FILTER(?o &gt;= 3) .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/result-ge-1.srx">data-r2/expr-ops/result-ge-1.srx</a></p>
<hr/>
<h2><a name="le-1">Less-than or equals</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html</a></div>
<p><= in FILTER expressions</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/data.ttl">data-r2/expr-ops/data.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;1&quot;^^xsd:integer .
:x2 :p &quot;2&quot;^^xsd:integer .
:x3 :p &quot;3&quot;^^xsd:integer .
:x4 :p &quot;4&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/query-le-1.rq">data-r2/expr-ops/query-le-1.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT ?s WHERE {
    ?s :p ?o .
    FILTER(?o &lt;= 2) .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/result-le-1.srx">data-r2/expr-ops/result-le-1.srx</a></p>
<hr/>
<h2><a name="minus-1">Subtraction</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html</a></div>
<p>A - B in FILTER expressions</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/data.ttl">data-r2/expr-ops/data.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;1&quot;^^xsd:integer .
:x2 :p &quot;2&quot;^^xsd:integer .
:x3 :p &quot;3&quot;^^xsd:integer .
:x4 :p &quot;4&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/query-minus-1.rq">data-r2/expr-ops/query-minus-1.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT ?s WHERE {
    ?s :p ?o .
    ?s2 :p ?o2 .
    FILTER(?o - ?o2 = 3) .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/result-minus-1.srx">data-r2/expr-ops/result-minus-1.srx</a></p>
<hr/>
<h2><a name="mul-1">Multiplication</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html</a></div>
<p>A * B in FILTER expressions</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/data.ttl">data-r2/expr-ops/data.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;1&quot;^^xsd:integer .
:x2 :p &quot;2&quot;^^xsd:integer .
:x3 :p &quot;3&quot;^^xsd:integer .
:x4 :p &quot;4&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/query-mul-1.rq">data-r2/expr-ops/query-mul-1.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT ?s WHERE {
    ?s :p ?o .
    ?s2 :p ?o2 .
    FILTER(?o * ?o2 = 4) .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/result-mul-1.srx">data-r2/expr-ops/result-mul-1.srx</a></p>
<hr/>
<h2><a name="plus-1">Addition</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html</a></div>
<p>A + B in FILTER expressions</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/data.ttl">data-r2/expr-ops/data.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;1&quot;^^xsd:integer .
:x2 :p &quot;2&quot;^^xsd:integer .
:x3 :p &quot;3&quot;^^xsd:integer .
:x4 :p &quot;4&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/query-plus-1.rq">data-r2/expr-ops/query-plus-1.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT ?s WHERE {
    ?s :p ?o .
    ?s2 :p ?o2 .
    FILTER(?o + ?o2 = 3) .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/result-plus-1.srx">data-r2/expr-ops/result-plus-1.srx</a></p>
<hr/>
<h2><a name="unminus-1">Unary Minus</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html</a></div>
<p>-A in FILTER expressions</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/data.ttl">data-r2/expr-ops/data.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;1&quot;^^xsd:integer .
:x2 :p &quot;2&quot;^^xsd:integer .
:x3 :p &quot;3&quot;^^xsd:integer .
:x4 :p &quot;4&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/query-unminus-1.rq">data-r2/expr-ops/query-unminus-1.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT ?s WHERE {
    ?s :p ?o .
    FILTER(-?o = -2) .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/result-unminus-1.srx">data-r2/expr-ops/result-unminus-1.srx</a></p>
<hr/>
<h2><a name="unplus-1">Unary Plusn</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0087/14-dawg-minutes.html</a></div>
<p>+A in FILTER expressions</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/data.ttl">data-r2/expr-ops/data.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;1&quot;^^xsd:integer .
:x2 :p &quot;2&quot;^^xsd:integer .
:x3 :p &quot;3&quot;^^xsd:integer .
:x4 :p &quot;4&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/query-unplus-1.rq">data-r2/expr-ops/query-unplus-1.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT ?s WHERE {
    ?s :p ?o .
    FILTER(?o = +3) .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/expr-ops/result-unplus-1.srx">data-r2/expr-ops/result-unplus-1.srx</a></p>
<hr/>
<h2><a name="dawg-graph-01">graph-01</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Data: default graph / Query: default graph</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g1.ttl">data-r2/graph/data-g1.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:a :p &quot;9&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-01.rq">data-r2/graph/graph-01.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * { ?s ?p ?o }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-01.ttl">data-r2/graph/graph-01.ttl</a></p>
<hr/>
<h2><a name="dawg-graph-02">graph-02</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Data: named graph / Query: default graph</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g1.ttl">http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g1.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:a :p &quot;9&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-02.rq">data-r2/graph/graph-02.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * { ?s ?p ?o }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-02.ttl">data-r2/graph/graph-02.ttl</a></p>
<hr/>
<h2><a name="dawg-graph-03">graph-03</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Data: named graph / Query: named graph graph</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g1.ttl">http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g1.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:a :p &quot;9&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-03.rq">data-r2/graph/graph-03.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * { 
    GRAPH ?g { ?s ?p ?o }
}


</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-03.ttl">data-r2/graph/graph-03.ttl</a></p>
<hr/>
<h2><a name="dawg-graph-04">graph-04</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Data: named graph / Query: default graph</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g1.ttl">data-r2/graph/data-g1.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:a :p &quot;9&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-04.rq">data-r2/graph/graph-04.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * { 
    GRAPH ?g { ?s ?p ?o }
}


</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-04.ttl">data-r2/graph/graph-04.ttl</a></p>
<hr/>
<h2><a name="dawg-graph-05">graph-05</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Data: default and named / Query: default graph</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g1.ttl">data-r2/graph/data-g1.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:a :p &quot;9&quot;^^xsd:integer .

</div><p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g2.ttl">http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g2.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:a :p &quot;9&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-05.rq">data-r2/graph/graph-05.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * { ?s ?p ?o }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-05.ttl">data-r2/graph/graph-05.ttl</a></p>
<hr/>
<h2><a name="dawg-graph-06">graph-06</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Data: default and named / Query: named graph</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g1.ttl">data-r2/graph/data-g1.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:a :p &quot;9&quot;^^xsd:integer .

</div><p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g2.ttl">http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g2.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:a :p &quot;9&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-06.rq">data-r2/graph/graph-06.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * { 
    GRAPH ?g { ?s ?p ?o }
}


</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-06.ttl">data-r2/graph/graph-06.ttl</a></p>
<hr/>
<h2><a name="dawg-graph-07">graph-07</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Data: default and named / Query: all data by UNION</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g1.ttl">data-r2/graph/data-g1.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:a :p &quot;9&quot;^^xsd:integer .

</div><p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g2.ttl">http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g2.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:a :p &quot;9&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-07.rq">data-r2/graph/graph-07.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * 
{ 
   { ?s ?p ?o }
  UNION
   { GRAPH ?g { ?s ?p ?o } }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-07.ttl">data-r2/graph/graph-07.ttl</a></p>
<hr/>
<h2><a name="dawg-graph-08">graph-08</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Data: default and named / Query: common subjects</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g1.ttl">data-r2/graph/data-g1.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:a :p &quot;9&quot;^^xsd:integer .

</div><p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g2.ttl">http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g2.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:a :p &quot;9&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-08.rq">data-r2/graph/graph-08.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * 
{ 
   ?s ?p ?o
   GRAPH ?g { ?s ?q ?v }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-08.ttl">data-r2/graph/graph-08.ttl</a></p>
<hr/>
<h2><a name="dawg-graph-09">graph-09</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Data: default and named (bnodes) / Query: common subjects</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g3.ttl">data-r2/graph/data-g3.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

_:x :p &quot;1&quot;^^xsd:integer .
_:a :p &quot;9&quot;^^xsd:integer .

</div><p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g4.ttl">http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g4.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

_:x :p &quot;1&quot;^^xsd:integer .
_:a :p &quot;9&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-09.rq">data-r2/graph/graph-09.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * 
{ 
   ?s ?p ?o
   GRAPH ?g { ?s ?q ?v }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-09.ttl">data-r2/graph/graph-09.ttl</a></p>
<hr/>
<h2><a name="dawg-graph-10">graph-10</a></h2>
Query evaluation test

<p>Data: default and named (same data, with bnodes) / Query: common subjects</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g3.ttl">data-r2/graph/data-g3.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

_:x :p &quot;1&quot;^^xsd:integer .
_:a :p &quot;9&quot;^^xsd:integer .

</div><p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g3.ttl">http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g3.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

_:x :p &quot;1&quot;^^xsd:integer .
_:a :p &quot;9&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-10.rq">data-r2/graph/graph-10.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * 
{ 
   ?s ?p ?o
   GRAPH ?g { ?s ?q ?v }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-10.ttl">data-r2/graph/graph-10.ttl</a></p>
<hr/>
<h2><a name="dawg-graph-10b">graph-10b</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/10/09-dawg-minutes.html">http://www.w3.org/2007/10/09-dawg-minutes.html</a></div>
<p>Data: default and named (same data, with bnodes) / Query: common subjects</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g3.ttl">data-r2/graph/data-g3.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

_:x :p &quot;1&quot;^^xsd:integer .
_:a :p &quot;9&quot;^^xsd:integer .

</div><p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g3-dup.ttl">http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g3-dup.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

_:x :p &quot;1&quot;^^xsd:integer .
_:a :p &quot;9&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-10.rq">data-r2/graph/graph-10.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * 
{ 
   ?s ?p ?o
   GRAPH ?g { ?s ?q ?v }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-10.ttl">data-r2/graph/graph-10.ttl</a></p>
<hr/>
<h2><a name="dawg-graph-11">graph-11</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Data: default and named (several) / Query: get everything</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g1.ttl">data-r2/graph/data-g1.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:a :p &quot;9&quot;^^xsd:integer .

</div><p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g1.ttl">data-r2/graph/data-g1.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:a :p &quot;9&quot;^^xsd:integer .

</div><p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g1.ttl">data-r2/graph/data-g1.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:a :p &quot;9&quot;^^xsd:integer .

</div><p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g1.ttl">data-r2/graph/data-g1.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:a :p &quot;9&quot;^^xsd:integer .

</div><p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g4.ttl">http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g4.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:a :p &quot;9&quot;^^xsd:integer .

</div><p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g3.ttl">http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g3.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:a :p &quot;9&quot;^^xsd:integer .

</div><p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g2.ttl">http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g2.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:a :p &quot;9&quot;^^xsd:integer .

</div><p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g1.ttl">http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/data-g1.ttl</a></p>
<div class="query">
@prefix : &lt;http://example/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :p &quot;1&quot;^^xsd:integer .
:a :p &quot;9&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-11.rq">data-r2/graph/graph-11.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example/&gt; 

SELECT * 
{ 
   { ?s ?p ?o }
  UNION
   { GRAPH ?g { ?s ?p ?o } }
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/graph/graph-11.ttl">data-r2/graph/graph-11.ttl</a></p>
<hr/>
<h2><a name="kanji-1">kanji-01</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/i18n/kanji.ttl">data-r2/i18n/kanji.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $
# See DOCUMENT INFO below.

# NAMESPACES
@prefix rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt; .
@prefix owl: &lt;http://www.w3.org/2002/07/owl#&gt; .
@prefix foaf: &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix &eacute;&pound;&#159;: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/i18n/kanji.ttl#&gt; .

# DOCUMENT INFO
&lt;&gt; rdfs:comment &quot;test kanji IRIs (composed from QNames)&quot; ;
   owl:versionInfo &quot;$Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $&quot;.

# DOCUMENT
_:alice foaf:name &quot;Alice&quot; ;
        &eacute;&pound;&#159;:&eacute;&pound;&#159;&atilde;&#129;&sup1;&atilde;&#130;&#139;   &eacute;&pound;&#159;:&ccedil;&acute;&#141;&egrave;&plusmn;&#134; .

_:bob   foaf:name &quot;Bob&quot; ;
        &eacute;&pound;&#159;:&eacute;&pound;&#159;&atilde;&#129;&sup1;&atilde;&#130;&#139;   &eacute;&pound;&#159;:&aelig;&micro;&middot;&egrave;&#128;&#129; .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/i18n/kanji-01.rq">data-r2/i18n/kanji-01.rq</a><br/>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $
# test kanji QNames
PREFIX foaf: &lt;http://xmlns.com/foaf/0.1/&gt;
PREFIX &eacute;&pound;&#159;: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/i18n/kanji.ttl#&gt;
SELECT ?name ?food WHERE {
  [ foaf:name ?name ;
    &eacute;&pound;&#159;:&eacute;&pound;&#159;&atilde;&#129;&sup1;&atilde;&#130;&#139; ?food ] . }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/i18n/kanji-01-results.ttl">data-r2/i18n/kanji-01-results.ttl</a></p>
<hr/>
<h2><a name="kanji-2">kanji-02</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/i18n/kanji.ttl">data-r2/i18n/kanji.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $
# See DOCUMENT INFO below.

# NAMESPACES
@prefix rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt; .
@prefix owl: &lt;http://www.w3.org/2002/07/owl#&gt; .
@prefix foaf: &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix &eacute;&pound;&#159;: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/i18n/kanji.ttl#&gt; .

# DOCUMENT INFO
&lt;&gt; rdfs:comment &quot;test kanji IRIs (composed from QNames)&quot; ;
   owl:versionInfo &quot;$Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $&quot;.

# DOCUMENT
_:alice foaf:name &quot;Alice&quot; ;
        &eacute;&pound;&#159;:&eacute;&pound;&#159;&atilde;&#129;&sup1;&atilde;&#130;&#139;   &eacute;&pound;&#159;:&ccedil;&acute;&#141;&egrave;&plusmn;&#134; .

_:bob   foaf:name &quot;Bob&quot; ;
        &eacute;&pound;&#159;:&eacute;&pound;&#159;&atilde;&#129;&sup1;&atilde;&#130;&#139;   &eacute;&pound;&#159;:&aelig;&micro;&middot;&egrave;&#128;&#129; .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/i18n/kanji-02.rq">data-r2/i18n/kanji-02.rq</a><br/>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $
# test wide spaces
PREFIX foaf: &lt;http://xmlns.com/foaf/0.1/&gt;
PREFIX &eacute;&pound;&#159;: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/i18n/kanji.ttl#&gt;
SELECT ?name WHERE {
  [ foaf:name ?name ;
    &eacute;&pound;&#159;:&eacute;&pound;&#159;&atilde;&#129;&sup1;&atilde;&#130;&#139; &eacute;&pound;&#159;:&aelig;&micro;&middot;&egrave;&#128;&#129; ] . }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/i18n/kanji-02-results.ttl">data-r2/i18n/kanji-02-results.ttl</a></p>
<hr/>
<h2><a name="normalization-1">normalization-01</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/i18n/normalization-01.ttl">data-r2/i18n/normalization-01.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $
# See DOCUMENT INFO below.

# NAMESPACES
@prefix rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt; .
@prefix owl: &lt;http://www.w3.org/2002/07/owl#&gt; .
@prefix foaf: &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix HR: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/i18n/normalization.ttl#&gt; .

# DOCUMENT INFO
&lt;&gt; rdfs:comment &quot;Normalized and non-normalized IRIs&quot; ;
   owl:versionInfo &quot;$Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $&quot;.

# DOCUMENT
[] foaf:name &quot;Alice&quot; ;
  HR:resum&Atilde;&copy; &quot;Alice&#39;s normalized resum&Atilde;&copy;&quot;  .

[] foaf:name &quot;Bob&quot; ;
  HR:resume&Igrave;&#129; &quot;Bob&#39;s non-normalized resume&Igrave;&#129;&quot; .

[] foaf:name &quot;Eve&quot; ;
  HR:resum&Atilde;&copy; &quot;Eve&#39;s normalized resum&Atilde;&copy;&quot; ;
  HR:resume&Igrave;&#129; &quot;Eve&#39;s non-normalized resume&Igrave;&#129;&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/i18n/normalization-01.rq">data-r2/i18n/normalization-01.rq</a><br/>
<div class="query">
# Figure out what happens with normalization form C.
PREFIX foaf: &lt;http://xmlns.com/foaf/0.1/&gt;
PREFIX HR: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/i18n/normalization.ttl#&gt;
SELECT ?name
 WHERE { [ foaf:name ?name; 
           HR:resume&Igrave;&#129; ?resume ] . }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/i18n/normalization-01-results.ttl">data-r2/i18n/normalization-01-results.ttl</a></p>
<hr/>
<h2><a name="normalization-2">normalization-02</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Example 1 from http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JulSep/0096</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/i18n/normalization-02.ttl">data-r2/i18n/normalization-02.ttl</a></p>
<div class="query">
# Example 1 from
# http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JulSep/0096
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $
@prefix : &lt;http://example/vocab#&gt;.

:s1 :p &lt;example://a/b/c/%7Bfoo%7D#xyz&gt;.
:s2 :p &lt;eXAMPLE://a/./b/../b/%63/%7bfoo%7d#xyz&gt;.


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/i18n/normalization-02.rq">data-r2/i18n/normalization-02.rq</a><br/>
<div class="query">
# Example 1 from
# http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JulSep/0096
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $
PREFIX : &lt;http://example/vocab#&gt;
PREFIX p1: &lt;eXAMPLE://a/./b/../b/%63/%7bfoo%7d#&gt;

SELECT ?S WHERE { ?S :p p1:xyz }


</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/i18n/normalization-02-results.ttl">data-r2/i18n/normalization-02-results.ttl</a></p>
<hr/>
<h2><a name="normalization-3">normalization-03</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes</a></div>
<p>Example 2 from http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JulSep/0096</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/i18n/normalization-03.ttl">data-r2/i18n/normalization-03.ttl</a></p>
<div class="query">
# Example 1 from
# http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JulSep/0096
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $
@prefix : &lt;http://example/vocab#&gt;.

:s3 :p &lt;http://example.com:80/#abc&gt;.
:s4 :p &lt;http://example.com/#abc&gt;.
:s5 :p &lt;http://example.com/#abc&gt;.


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/i18n/normalization-03.rq">data-r2/i18n/normalization-03.rq</a><br/>
<div class="query">
# Example 2 from
# http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JulSep/0096
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $
PREFIX : &lt;http://example/vocab#&gt;
PREFIX p2: &lt;http://example.com:80/#&gt;

SELECT ?S WHERE { ?S :p p2:abc }


</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/i18n/normalization-03-results.ttl">data-r2/i18n/normalization-03-results.ttl</a></p>
<hr/>
<h2><a name="date-1">date-1</a></h2>
Query evaluation test

<p>Added type : xsd:date '='</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/data-3.ttl">data-r2/open-world/data-3.ttl</a></p>
<div class="query">
@prefix     : &lt;http://example/&gt; .
@prefix  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:dt1 :r &quot;2006-08-23T09:00:00+01:00&quot;^^xsd:dateTime .

:d1 :r &quot;2006-08-23&quot;^^xsd:date .
:d2 :r &quot;2006-08-23Z&quot;^^xsd:date .
:d3 :r &quot;2006-08-23+00:00&quot;^^xsd:date .

:d4 :r &quot;2001-01-01&quot;^^xsd:date .
:d5 :r &quot;2001-01-01Z&quot;^^xsd:date .

:d6 :s &quot;2006-08-23&quot;^^xsd:date .
:d7 :s &quot;2006-08-24Z&quot;^^xsd:date .
:d8 :s &quot;2000-01-01&quot;^^xsd:date .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/date-1.rq">data-r2/open-world/date-1.rq</a><br/>
<div class="query">
PREFIX     :    &lt;http://example/&gt;
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT *
{
    ?x :r ?v .
    FILTER ( ?v = &quot;2006-08-23&quot;^^xsd:date )
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/date-1-result.srx">data-r2/open-world/date-1-result.srx</a></p>
<hr/>
<h2><a name="date-2">date-2</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>Added type : xsd:date '!='</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/data-3.ttl">data-r2/open-world/data-3.ttl</a></p>
<div class="query">
@prefix     : &lt;http://example/&gt; .
@prefix  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:dt1 :r &quot;2006-08-23T09:00:00+01:00&quot;^^xsd:dateTime .

:d1 :r &quot;2006-08-23&quot;^^xsd:date .
:d2 :r &quot;2006-08-23Z&quot;^^xsd:date .
:d3 :r &quot;2006-08-23+00:00&quot;^^xsd:date .

:d4 :r &quot;2001-01-01&quot;^^xsd:date .
:d5 :r &quot;2001-01-01Z&quot;^^xsd:date .

:d6 :s &quot;2006-08-23&quot;^^xsd:date .
:d7 :s &quot;2006-08-24Z&quot;^^xsd:date .
:d8 :s &quot;2000-01-01&quot;^^xsd:date .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/date-2.rq">data-r2/open-world/date-2.rq</a><br/>
<div class="query">
PREFIX     :    &lt;http://example/&gt;
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT *
{
    ?x :r ?v .
    FILTER ( ?v != &quot;2006-08-23&quot;^^xsd:date )
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/date-2-result.srx">data-r2/open-world/date-2-result.srx</a></p>
<hr/>
<h2><a name="date-3">date-3</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>Added type : xsd:date '>'</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/data-3.ttl">data-r2/open-world/data-3.ttl</a></p>
<div class="query">
@prefix     : &lt;http://example/&gt; .
@prefix  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:dt1 :r &quot;2006-08-23T09:00:00+01:00&quot;^^xsd:dateTime .

:d1 :r &quot;2006-08-23&quot;^^xsd:date .
:d2 :r &quot;2006-08-23Z&quot;^^xsd:date .
:d3 :r &quot;2006-08-23+00:00&quot;^^xsd:date .

:d4 :r &quot;2001-01-01&quot;^^xsd:date .
:d5 :r &quot;2001-01-01Z&quot;^^xsd:date .

:d6 :s &quot;2006-08-23&quot;^^xsd:date .
:d7 :s &quot;2006-08-24Z&quot;^^xsd:date .
:d8 :s &quot;2000-01-01&quot;^^xsd:date .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/date-3.rq">data-r2/open-world/date-3.rq</a><br/>
<div class="query">
PREFIX     :    &lt;http://example/&gt;
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT *
{
    ?x :r ?v .
    FILTER ( ?v &gt; &quot;2006-08-22&quot;^^xsd:date )
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/date-3-result.srx">data-r2/open-world/date-3-result.srx</a></p>
<hr/>
<h2><a name="date-4">date-4</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>xsd:date ORDER BY</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/data-3.ttl">data-r2/open-world/data-3.ttl</a></p>
<div class="query">
@prefix     : &lt;http://example/&gt; .
@prefix  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:dt1 :r &quot;2006-08-23T09:00:00+01:00&quot;^^xsd:dateTime .

:d1 :r &quot;2006-08-23&quot;^^xsd:date .
:d2 :r &quot;2006-08-23Z&quot;^^xsd:date .
:d3 :r &quot;2006-08-23+00:00&quot;^^xsd:date .

:d4 :r &quot;2001-01-01&quot;^^xsd:date .
:d5 :r &quot;2001-01-01Z&quot;^^xsd:date .

:d6 :s &quot;2006-08-23&quot;^^xsd:date .
:d7 :s &quot;2006-08-24Z&quot;^^xsd:date .
:d8 :s &quot;2000-01-01&quot;^^xsd:date .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/date-4.rq">data-r2/open-world/date-4.rq</a><br/>
<div class="query">
PREFIX     :    &lt;http://example/&gt;
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT ?x ?date
{
    ?x :s ?date .
    FILTER ( datatype(?date) = xsd:date )
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/date-4-result.srx">data-r2/open-world/date-4-result.srx</a></p>
<hr/>
<h2><a name="open-cmp-01">open-cmp-01</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>Find things that compare with < or ></p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/data-4.ttl">data-r2/open-world/data-4.ttl</a></p>
<div class="query">
@prefix     : &lt;http://example/&gt; .
@prefix  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .



:x1 :p [ :v1 &quot;v1&quot; ; :v2 &quot;v2&quot; ] .

:x2 :p [ :v1 &quot;1&quot;^^xsd:integer ; :v2 &quot;v2&quot; ] .

:x3 :p [ :v1 &quot;x&quot;^^:unknown ; :v2 &quot;x&quot;^^:unknown ] .

:x4 :p [ :v1 &lt;test:abc&gt; ; :v2 &lt;test:abc&gt; ] .

:x5 :p [ :v1 &quot;2006-08-23T09:00:00+01:00&quot;^^xsd:dateTime ;
         :v2 &quot;2006-08-22&quot;^^xsd:date ].

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-cmp-01.rq">data-r2/open-world/open-cmp-01.rq</a><br/>
<div class="query">
PREFIX      :    &lt;http://example/&gt; 
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT ?x ?v1 ?v2
{
    ?x :p [ :v1 ?v1 ; :v2 ?v2 ] .
    FILTER ( ?v1 &lt; ?v2 || ?v1 &gt; ?v2 )
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-cmp-01-result.srx">data-r2/open-world/open-cmp-01-result.srx</a></p>
<hr/>
<h2><a name="open-cmp-02">open-cmp-02</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0118/04-dawg-minutes.html</a></div>
<p>Find things that compare with <= and ></p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/data-4.ttl">data-r2/open-world/data-4.ttl</a></p>
<div class="query">
@prefix     : &lt;http://example/&gt; .
@prefix  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .



:x1 :p [ :v1 &quot;v1&quot; ; :v2 &quot;v2&quot; ] .

:x2 :p [ :v1 &quot;1&quot;^^xsd:integer ; :v2 &quot;v2&quot; ] .

:x3 :p [ :v1 &quot;x&quot;^^:unknown ; :v2 &quot;x&quot;^^:unknown ] .

:x4 :p [ :v1 &lt;test:abc&gt; ; :v2 &lt;test:abc&gt; ] .

:x5 :p [ :v1 &quot;2006-08-23T09:00:00+01:00&quot;^^xsd:dateTime ;
         :v2 &quot;2006-08-22&quot;^^xsd:date ].

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-cmp-02.rq">data-r2/open-world/open-cmp-02.rq</a><br/>
<div class="query">
PREFIX      :    &lt;http://example/&gt; 
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT ?x ?v1 ?v2
{
    ?x :p [ :v1 ?v1 ; :v2 ?v2 ] .
    FILTER ( ?v1 &lt; ?v2 || ?v1 = ?v2 || ?v1 &gt; ?v2 )
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-cmp-02-result.srx">data-r2/open-world/open-cmp-02-result.srx</a></p>
<hr/>
<h2><a name="open-eq-01">open-eq-01</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>graph match - no lexical form in data (assumes no value matching)</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/data-1.ttl">data-r2/open-world/data-1.ttl</a></p>
<div class="query">
@prefix t: &lt;http://example/t#&gt; .
@prefix :  &lt;http://example/ns#&gt; .
@prefix xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;a&quot;^^t:type1 .
:x2 :p &quot;b&quot;^^t:type1 .

:y1 :p &quot;a&quot;^^t:type2 .
:y2 :p &quot;b&quot;^^t:type2 .

:z1 :p &quot;1&quot;^^xsd:integer .
:z2 :p &quot;01&quot;^^xsd:integer .
:z3 :p &quot;2&quot;^^xsd:integer .
:z4 :p &quot;02&quot;^^xsd:integer .




</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-01.rq">data-r2/open-world/open-eq-01.rq</a><br/>
<div class="query">
# SPARQL is defined over simple entailment so
# only syntactic matches show.  
# (Some systems may match because they do
# value-based matching in the graph (D-entailment))

# Does not strictly match &quot;1&quot;^xsd:integer

PREFIX  :       &lt;http://example/ns#&gt;
PREFIX  t:      &lt;http://example/t#&gt;
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT *
{ ?x :p &quot;001&quot;^^xsd:integer }
</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-01-result.srx">data-r2/open-world/open-eq-01-result.srx</a></p>
<hr/>
<h2><a name="open-eq-02">open-eq-02</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>graph match - unknown type</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/data-1.ttl">data-r2/open-world/data-1.ttl</a></p>
<div class="query">
@prefix t: &lt;http://example/t#&gt; .
@prefix :  &lt;http://example/ns#&gt; .
@prefix xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;a&quot;^^t:type1 .
:x2 :p &quot;b&quot;^^t:type1 .

:y1 :p &quot;a&quot;^^t:type2 .
:y2 :p &quot;b&quot;^^t:type2 .

:z1 :p &quot;1&quot;^^xsd:integer .
:z2 :p &quot;01&quot;^^xsd:integer .
:z3 :p &quot;2&quot;^^xsd:integer .
:z4 :p &quot;02&quot;^^xsd:integer .




</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-02.rq">data-r2/open-world/open-eq-02.rq</a><br/>
<div class="query">
# Test matching in a graph pattern
# Unknown type

PREFIX  :       &lt;http://example/ns#&gt;
PREFIX  t:      &lt;http://example/t#&gt;

SELECT *
{ ?x :p &quot;a&quot;^^t:type1 }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-02-result.srx">data-r2/open-world/open-eq-02-result.srx</a></p>
<hr/>
<h2><a name="open-eq-03">open-eq-03</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>Filter(?v=1)</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/data-1.ttl">data-r2/open-world/data-1.ttl</a></p>
<div class="query">
@prefix t: &lt;http://example/t#&gt; .
@prefix :  &lt;http://example/ns#&gt; .
@prefix xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;a&quot;^^t:type1 .
:x2 :p &quot;b&quot;^^t:type1 .

:y1 :p &quot;a&quot;^^t:type2 .
:y2 :p &quot;b&quot;^^t:type2 .

:z1 :p &quot;1&quot;^^xsd:integer .
:z2 :p &quot;01&quot;^^xsd:integer .
:z3 :p &quot;2&quot;^^xsd:integer .
:z4 :p &quot;02&quot;^^xsd:integer .




</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-03.rq">data-r2/open-world/open-eq-03.rq</a><br/>
<div class="query">
# SPARQL FILTER test by value.
# A processor knows about XSD integer
# so 1 and 01 pass the filter

PREFIX  :       &lt;http://example/ns#&gt;
PREFIX  t:      &lt;http://example/t#&gt;
PREFIX  rdf:    &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX  rdfs:   &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT *
{ ?x :p ?v 
  FILTER ( ?v = 1 )
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-03-result.srx">data-r2/open-world/open-eq-03-result.srx</a></p>
<hr/>
<h2><a name="open-eq-04">open-eq-04</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>Filter(?v!=1)</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/data-1.ttl">data-r2/open-world/data-1.ttl</a></p>
<div class="query">
@prefix t: &lt;http://example/t#&gt; .
@prefix :  &lt;http://example/ns#&gt; .
@prefix xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;a&quot;^^t:type1 .
:x2 :p &quot;b&quot;^^t:type1 .

:y1 :p &quot;a&quot;^^t:type2 .
:y2 :p &quot;b&quot;^^t:type2 .

:z1 :p &quot;1&quot;^^xsd:integer .
:z2 :p &quot;01&quot;^^xsd:integer .
:z3 :p &quot;2&quot;^^xsd:integer .
:z4 :p &quot;02&quot;^^xsd:integer .




</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-04.rq">data-r2/open-world/open-eq-04.rq</a><br/>
<div class="query">
# SPARQL FILTER test by value.
# A processor knows about XSD integer
# so 1 and 01 are excluded by the filter

PREFIX  :       &lt;http://example/ns#&gt;
PREFIX  t:      &lt;http://example/t#&gt;
PREFIX  rdf:    &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX  rdfs:   &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT *
{ ?x :p ?v 
  FILTER ( ?v != 1 )
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-04-result.srx">data-r2/open-world/open-eq-04-result.srx</a></p>
<hr/>
<h2><a name="open-eq-05">open-eq-05</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>FILTER(?v = unknown type)</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/data-1.ttl">data-r2/open-world/data-1.ttl</a></p>
<div class="query">
@prefix t: &lt;http://example/t#&gt; .
@prefix :  &lt;http://example/ns#&gt; .
@prefix xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;a&quot;^^t:type1 .
:x2 :p &quot;b&quot;^^t:type1 .

:y1 :p &quot;a&quot;^^t:type2 .
:y2 :p &quot;b&quot;^^t:type2 .

:z1 :p &quot;1&quot;^^xsd:integer .
:z2 :p &quot;01&quot;^^xsd:integer .
:z3 :p &quot;2&quot;^^xsd:integer .
:z4 :p &quot;02&quot;^^xsd:integer .




</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-05.rq">data-r2/open-world/open-eq-05.rq</a><br/>
<div class="query">
# SPARQL FILTER test by value.
# Only one valus is known to be &quot;a&quot;^^t:type1
# (others maybe but the processor does not positively know this)

PREFIX  :       &lt;http://example/ns#&gt;
PREFIX  t:      &lt;http://example/t#&gt;

SELECT *
{ ?x :p ?v 
  FILTER ( ?v = &quot;a&quot;^^t:type1 )
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-05-result.srx">data-r2/open-world/open-eq-05-result.srx</a></p>
<hr/>
<h2><a name="open-eq-06">open-eq-06</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>FILTER(?v != unknown type)</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/data-1.ttl">data-r2/open-world/data-1.ttl</a></p>
<div class="query">
@prefix t: &lt;http://example/t#&gt; .
@prefix :  &lt;http://example/ns#&gt; .
@prefix xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;a&quot;^^t:type1 .
:x2 :p &quot;b&quot;^^t:type1 .

:y1 :p &quot;a&quot;^^t:type2 .
:y2 :p &quot;b&quot;^^t:type2 .

:z1 :p &quot;1&quot;^^xsd:integer .
:z2 :p &quot;01&quot;^^xsd:integer .
:z3 :p &quot;2&quot;^^xsd:integer .
:z4 :p &quot;02&quot;^^xsd:integer .




</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-06.rq">data-r2/open-world/open-eq-06.rq</a><br/>
<div class="query">
# SPARQL FILTER test by value for known types.
# Nothing is known to be not the same value as  &quot;a&quot;^^t:type1
#  &quot;b&quot;^^t:type1 might be a different lexical form for the same value
#  &quot;a&quot;^^t:type2 might have overlapping value spaces for this lexicial form.

PREFIX  :       &lt;http://example/ns#&gt;
PREFIX  t:      &lt;http://example/t#&gt;

SELECT *
{ ?x :p ?v 
  FILTER ( ?v != &quot;a&quot;^^t:type1 )
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-06-result.srx">data-r2/open-world/open-eq-06-result.srx</a></p>
<hr/>
<h2><a name="open-eq-07">open-eq-07</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>Test of '=' </p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/data-2.ttl">data-r2/open-world/data-2.ttl</a></p>
<div class="query">
@prefix     : &lt;http://example/&gt; .
@prefix  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;xyz&quot; .
:x2 :p &quot;xyz&quot;@en .
:x3 :p &quot;xyz&quot;@EN .
:x4 :p &quot;xyz&quot;^^xsd:string .
:x5 :p &quot;xyz&quot;^^xsd:integer .
:x6 :p &quot;xyz&quot;^^:unknown .
:x7 :p _:xyz .
:x8 :p :xyz .

:y1 :q &quot;abc&quot; .
:y2 :q &quot;abc&quot;@en .
:y3 :q &quot;abc&quot;@EN .
:y4 :q &quot;abc&quot;^^xsd:string .
:y5 :q &quot;abc&quot;^^xsd:integer .
:y6 :q &quot;abc&quot;^^:unknown .
:y7 :q _:abc .
:y8 :q :abc .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-07.rq">data-r2/open-world/open-eq-07.rq</a><br/>
<div class="query">
PREFIX     :    &lt;http://example/&gt;
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT *
{
    ?x1 :p ?v1 .
    ?x2 :p ?v2 .
    FILTER ( ?v1 = ?v2 )
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-07-result.srx">data-r2/open-world/open-eq-07-result.srx</a></p>
<hr/>
<h2><a name="open-eq-08">open-eq-08</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>Test of '!='</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/data-2.ttl">data-r2/open-world/data-2.ttl</a></p>
<div class="query">
@prefix     : &lt;http://example/&gt; .
@prefix  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;xyz&quot; .
:x2 :p &quot;xyz&quot;@en .
:x3 :p &quot;xyz&quot;@EN .
:x4 :p &quot;xyz&quot;^^xsd:string .
:x5 :p &quot;xyz&quot;^^xsd:integer .
:x6 :p &quot;xyz&quot;^^:unknown .
:x7 :p _:xyz .
:x8 :p :xyz .

:y1 :q &quot;abc&quot; .
:y2 :q &quot;abc&quot;@en .
:y3 :q &quot;abc&quot;@EN .
:y4 :q &quot;abc&quot;^^xsd:string .
:y5 :q &quot;abc&quot;^^xsd:integer .
:y6 :q &quot;abc&quot;^^:unknown .
:y7 :q _:abc .
:y8 :q :abc .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-08.rq">data-r2/open-world/open-eq-08.rq</a><br/>
<div class="query">
PREFIX     :    &lt;http://example/&gt;
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT *
{
    ?x1 :p ?v1 .
    ?x2 :p ?v2 .
    FILTER ( ?v1 != ?v2 )
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-08-result.srx">data-r2/open-world/open-eq-08-result.srx</a></p>
<hr/>
<h2><a name="open-eq-09">open-eq-09</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>Test of '='</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/data-2.ttl">data-r2/open-world/data-2.ttl</a></p>
<div class="query">
@prefix     : &lt;http://example/&gt; .
@prefix  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;xyz&quot; .
:x2 :p &quot;xyz&quot;@en .
:x3 :p &quot;xyz&quot;@EN .
:x4 :p &quot;xyz&quot;^^xsd:string .
:x5 :p &quot;xyz&quot;^^xsd:integer .
:x6 :p &quot;xyz&quot;^^:unknown .
:x7 :p _:xyz .
:x8 :p :xyz .

:y1 :q &quot;abc&quot; .
:y2 :q &quot;abc&quot;@en .
:y3 :q &quot;abc&quot;@EN .
:y4 :q &quot;abc&quot;^^xsd:string .
:y5 :q &quot;abc&quot;^^xsd:integer .
:y6 :q &quot;abc&quot;^^:unknown .
:y7 :q _:abc .
:y8 :q :abc .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-09.rq">data-r2/open-world/open-eq-09.rq</a><br/>
<div class="query">
PREFIX     :    &lt;http://example/&gt;
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT *
{
    ?x :p ?v1 .
    ?y :q ?v2 .
    FILTER ( ?v1 = ?v2 )
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-09-result.srx">data-r2/open-world/open-eq-09-result.srx</a></p>
<hr/>
<h2><a name="open-eq-10">open-eq-10</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>Test of '!='</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/data-2.ttl">data-r2/open-world/data-2.ttl</a></p>
<div class="query">
@prefix     : &lt;http://example/&gt; .
@prefix  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;xyz&quot; .
:x2 :p &quot;xyz&quot;@en .
:x3 :p &quot;xyz&quot;@EN .
:x4 :p &quot;xyz&quot;^^xsd:string .
:x5 :p &quot;xyz&quot;^^xsd:integer .
:x6 :p &quot;xyz&quot;^^:unknown .
:x7 :p _:xyz .
:x8 :p :xyz .

:y1 :q &quot;abc&quot; .
:y2 :q &quot;abc&quot;@en .
:y3 :q &quot;abc&quot;@EN .
:y4 :q &quot;abc&quot;^^xsd:string .
:y5 :q &quot;abc&quot;^^xsd:integer .
:y6 :q &quot;abc&quot;^^:unknown .
:y7 :q _:abc .
:y8 :q :abc .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-10.rq">data-r2/open-world/open-eq-10.rq</a><br/>
<div class="query">
PREFIX     :    &lt;http://example/&gt;
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT *
{
    ?x :p ?v1 .
    ?y :q ?v2 .
    FILTER ( ?v1 != ?v2 )
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-10-result.srx">data-r2/open-world/open-eq-10-result.srx</a></p>
<hr/>
<h2><a name="open-eq-11">open-eq-11</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>test of '=' || '!='</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/data-2.ttl">data-r2/open-world/data-2.ttl</a></p>
<div class="query">
@prefix     : &lt;http://example/&gt; .
@prefix  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;xyz&quot; .
:x2 :p &quot;xyz&quot;@en .
:x3 :p &quot;xyz&quot;@EN .
:x4 :p &quot;xyz&quot;^^xsd:string .
:x5 :p &quot;xyz&quot;^^xsd:integer .
:x6 :p &quot;xyz&quot;^^:unknown .
:x7 :p _:xyz .
:x8 :p :xyz .

:y1 :q &quot;abc&quot; .
:y2 :q &quot;abc&quot;@en .
:y3 :q &quot;abc&quot;@EN .
:y4 :q &quot;abc&quot;^^xsd:string .
:y5 :q &quot;abc&quot;^^xsd:integer .
:y6 :q &quot;abc&quot;^^:unknown .
:y7 :q _:abc .
:y8 :q :abc .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-11.rq">data-r2/open-world/open-eq-11.rq</a><br/>
<div class="query">
PREFIX     :    &lt;http://example/&gt;
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT *
{
    ?x :p ?v1 .
    ?y :q ?v2 .
    FILTER ( ?v1 != ?v2 || ?v1 = ?v2 )
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-11-result.srx">data-r2/open-world/open-eq-11-result.srx</a></p>
<hr/>
<h2><a name="open-eq-12">open-eq-12</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>find pairs that don't value-compare</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/data-2.ttl">data-r2/open-world/data-2.ttl</a></p>
<div class="query">
@prefix     : &lt;http://example/&gt; .
@prefix  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x1 :p &quot;xyz&quot; .
:x2 :p &quot;xyz&quot;@en .
:x3 :p &quot;xyz&quot;@EN .
:x4 :p &quot;xyz&quot;^^xsd:string .
:x5 :p &quot;xyz&quot;^^xsd:integer .
:x6 :p &quot;xyz&quot;^^:unknown .
:x7 :p _:xyz .
:x8 :p :xyz .

:y1 :q &quot;abc&quot; .
:y2 :q &quot;abc&quot;@en .
:y3 :q &quot;abc&quot;@EN .
:y4 :q &quot;abc&quot;^^xsd:string .
:y5 :q &quot;abc&quot;^^xsd:integer .
:y6 :q &quot;abc&quot;^^:unknown .
:y7 :q _:abc .
:y8 :q :abc .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-12.rq">data-r2/open-world/open-eq-12.rq</a><br/>
<div class="query">
PREFIX     :    &lt;http://example/&gt;
PREFIX  xsd:    &lt;http://www.w3.org/2001/XMLSchema#&gt;

SELECT ?x ?v1 ?y ?v2
{
    ?x :p ?v1 .
    ?y :p ?v2 .
    OPTIONAL { ?y :p ?v3 . FILTER( ?v1 != ?v3 || ?v1 = ?v3 )}
    FILTER (!bound(?v3))
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/open-eq-12-result.srx">data-r2/open-world/open-eq-12-result.srx</a></p>
<hr/>
<h2><a name="dawg-optional-filter-001">OPTIONAL-FILTER</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>FILTER inside an OPTIONAL does not block an entire solution</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional-filter/data-1.ttl">data-r2/optional-filter/data-1.ttl</a></p>
<div class="query">
@prefix x: &lt;http://example.org/ns#&gt; .
@prefix : &lt;http://example.org/books#&gt; .
@prefix dc:         &lt;http://purl.org/dc/elements/1.1/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:book1 dc:title &quot;TITLE 1&quot; .
:book1 x:price  &quot;10&quot;^^xsd:integer .

:book2 dc:title &quot;TITLE 2&quot; .
:book2 x:price  &quot;20&quot;^^xsd:integer .

:book3 dc:title &quot;TITLE 3&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional-filter/expr-1.rq">data-r2/optional-filter/expr-1.rq</a><br/>
<div class="query">
PREFIX  dc: &lt;http://purl.org/dc/elements/1.1/&gt;
PREFIX  x: &lt;http://example.org/ns#&gt;
SELECT  ?title ?price
WHERE
    { ?book dc:title ?title . 
      OPTIONAL
        { ?book x:price ?price . 
          FILTER (?price &lt; 15) .
        } .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional-filter/expr-1-result.ttl">data-r2/optional-filter/expr-1-result.ttl</a></p>
<hr/>
<h2><a name="dawg-optional-filter-002">OPTIONAL - Outer FILTER</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>FILTER outside an OPTIONAL tests bound and unbound variables</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional-filter/data-1.ttl">data-r2/optional-filter/data-1.ttl</a></p>
<div class="query">
@prefix x: &lt;http://example.org/ns#&gt; .
@prefix : &lt;http://example.org/books#&gt; .
@prefix dc:         &lt;http://purl.org/dc/elements/1.1/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:book1 dc:title &quot;TITLE 1&quot; .
:book1 x:price  &quot;10&quot;^^xsd:integer .

:book2 dc:title &quot;TITLE 2&quot; .
:book2 x:price  &quot;20&quot;^^xsd:integer .

:book3 dc:title &quot;TITLE 3&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional-filter/expr-2.rq">data-r2/optional-filter/expr-2.rq</a><br/>
<div class="query">
PREFIX  dc: &lt;http://purl.org/dc/elements/1.1/&gt;
PREFIX  x: &lt;http://example.org/ns#&gt;
SELECT  ?title ?price
WHERE
    { ?book dc:title ?title . 
      OPTIONAL
        { ?book x:price ?price } . 
      FILTER (?price &lt; 15)  .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional-filter/expr-2-result.ttl">data-r2/optional-filter/expr-2-result.ttl</a></p>
<hr/>
<h2><a name="dawg-optional-filter-003">OPTIONAL - Outer FILTER with BOUND</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/att-0082/2007-06-12-dawg-minutes.html</a></div>
<p>Use !bound to only run outer FILTERs against variables bound in an OPTIONAL</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional-filter/data-1.ttl">data-r2/optional-filter/data-1.ttl</a></p>
<div class="query">
@prefix x: &lt;http://example.org/ns#&gt; .
@prefix : &lt;http://example.org/books#&gt; .
@prefix dc:         &lt;http://purl.org/dc/elements/1.1/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:book1 dc:title &quot;TITLE 1&quot; .
:book1 x:price  &quot;10&quot;^^xsd:integer .

:book2 dc:title &quot;TITLE 2&quot; .
:book2 x:price  &quot;20&quot;^^xsd:integer .

:book3 dc:title &quot;TITLE 3&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional-filter/expr-3.rq">data-r2/optional-filter/expr-3.rq</a><br/>
<div class="query">
PREFIX  dc: &lt;http://purl.org/dc/elements/1.1/&gt;
PREFIX  x: &lt;http://example.org/ns#&gt;
SELECT  ?title ?price
WHERE
    { ?book dc:title ?title . 
      OPTIONAL
        { ?book x:price ?price } . 
      FILTER ( ( ! bound(?price) ) || ( ?price &lt; 15 ) ) .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional-filter/expr-3-result.ttl">data-r2/optional-filter/expr-3-result.ttl</a></p>
<hr/>
<h2><a name="dawg-optional-filter-004">OPTIONAL - Inner FILTER with negative EBV for outer variables</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007OctDec/att-0006/02-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007OctDec/att-0006/02-dawg-minutes.html</a></div>
<p>FILTER inside an OPTIONAL does not corrupt the entire solution</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional-filter/data-1.ttl">data-r2/optional-filter/data-1.ttl</a></p>
<div class="query">
@prefix x: &lt;http://example.org/ns#&gt; .
@prefix : &lt;http://example.org/books#&gt; .
@prefix dc:         &lt;http://purl.org/dc/elements/1.1/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:book1 dc:title &quot;TITLE 1&quot; .
:book1 x:price  &quot;10&quot;^^xsd:integer .

:book2 dc:title &quot;TITLE 2&quot; .
:book2 x:price  &quot;20&quot;^^xsd:integer .

:book3 dc:title &quot;TITLE 3&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional-filter/expr-4.rq">data-r2/optional-filter/expr-4.rq</a><br/>
<div class="query">
PREFIX  dc: &lt;http://purl.org/dc/elements/1.1/&gt;
PREFIX  x: &lt;http://example.org/ns#&gt;
SELECT  ?title ?price
WHERE
    { ?book dc:title ?title . 
      OPTIONAL
        { ?book x:price ?price . 
          FILTER (?price &lt; 15 &amp;&amp; ?title = &quot;TITLE 2&quot;) .
        } .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional-filter/expr-4-result.ttl">data-r2/optional-filter/expr-4-result.ttl</a></p>
<hr/>
<h2><a name="dawg-optional-filter-005-not-simplified">dawg-optional-filter-005-not-simplified</a></h2>
Query evaluation test

<p>Double curly braces do NOT get simplified to single curly braces early on, before filters are scoped</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional-filter/data-1.ttl">data-r2/optional-filter/data-1.ttl</a></p>
<div class="query">
@prefix x: &lt;http://example.org/ns#&gt; .
@prefix : &lt;http://example.org/books#&gt; .
@prefix dc:         &lt;http://purl.org/dc/elements/1.1/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:book1 dc:title &quot;TITLE 1&quot; .
:book1 x:price  &quot;10&quot;^^xsd:integer .

:book2 dc:title &quot;TITLE 2&quot; .
:book2 x:price  &quot;20&quot;^^xsd:integer .

:book3 dc:title &quot;TITLE 3&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional-filter/expr-5.rq">data-r2/optional-filter/expr-5.rq</a><br/>
<div class="query">
PREFIX  dc: &lt;http://purl.org/dc/elements/1.1/&gt;
PREFIX  x: &lt;http://example.org/ns#&gt;
SELECT  ?title ?price
WHERE
    { ?book dc:title ?title . 
      OPTIONAL
        {
          { 
            ?book x:price ?price . 
            FILTER (?title = &quot;TITLE 2&quot;) .
          }
        } .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional-filter/expr-5-result-not-simplified.ttl">data-r2/optional-filter/expr-5-result-not-simplified.ttl</a></p>
<hr/>
<h2><a name="dawg-optional-filter-005-simplified">dawg-optional-filter-005-simplified</a></h2>
Query evaluation test

<p>Double curly braces get simplified to single curly braces early on, before filters are scoped</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional-filter/data-1.ttl">data-r2/optional-filter/data-1.ttl</a></p>
<div class="query">
@prefix x: &lt;http://example.org/ns#&gt; .
@prefix : &lt;http://example.org/books#&gt; .
@prefix dc:         &lt;http://purl.org/dc/elements/1.1/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:book1 dc:title &quot;TITLE 1&quot; .
:book1 x:price  &quot;10&quot;^^xsd:integer .

:book2 dc:title &quot;TITLE 2&quot; .
:book2 x:price  &quot;20&quot;^^xsd:integer .

:book3 dc:title &quot;TITLE 3&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional-filter/expr-5.rq">data-r2/optional-filter/expr-5.rq</a><br/>
<div class="query">
PREFIX  dc: &lt;http://purl.org/dc/elements/1.1/&gt;
PREFIX  x: &lt;http://example.org/ns#&gt;
SELECT  ?title ?price
WHERE
    { ?book dc:title ?title . 
      OPTIONAL
        {
          { 
            ?book x:price ?price . 
            FILTER (?title = &quot;TITLE 2&quot;) .
          }
        } .
    }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional-filter/expr-5-result-simplified.ttl">data-r2/optional-filter/expr-5-result-simplified.ttl</a></p>
<hr/>
<h2><a name="dawg-optional-001">One optional clause</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006</a></div>
<p>One optional clause</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/data.ttl">data-r2/optional/data.ttl</a></p>
<div class="query">
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .

_:a foaf:mbox   &lt;mailto:alice@example.net&gt; .
_:a foaf:name   &quot;Alice&quot; .
_:a foaf:nick   &quot;WhoMe?&quot; .

_:b foaf:mbox   &lt;mailto:bert@example.net&gt; .
_:b foaf:name   &quot;Bert&quot; .

_:e foaf:mbox   &lt;mailto:eve@example.net&gt; .
_:e foaf:nick   &quot;DuckSoup&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/q-opt-1.rq">data-r2/optional/q-opt-1.rq</a><br/>
<div class="query">
PREFIX  foaf:   &lt;http://xmlns.com/foaf/0.1/&gt;

SELECT ?mbox ?name
   {
     ?x foaf:mbox ?mbox .
     OPTIONAL { ?x foaf:name  ?name } .
   }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/result-opt-1.ttl">data-r2/optional/result-opt-1.ttl</a></p>
<hr/>
<h2><a name="dawg-optional-002">Two optional clauses</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006</a></div>
<p>One optional clause</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/data.ttl">data-r2/optional/data.ttl</a></p>
<div class="query">
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .

_:a foaf:mbox   &lt;mailto:alice@example.net&gt; .
_:a foaf:name   &quot;Alice&quot; .
_:a foaf:nick   &quot;WhoMe?&quot; .

_:b foaf:mbox   &lt;mailto:bert@example.net&gt; .
_:b foaf:name   &quot;Bert&quot; .

_:e foaf:mbox   &lt;mailto:eve@example.net&gt; .
_:e foaf:nick   &quot;DuckSoup&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/q-opt-2.rq">data-r2/optional/q-opt-2.rq</a><br/>
<div class="query">
PREFIX  foaf:   &lt;http://xmlns.com/foaf/0.1/&gt;

SELECT ?mbox ?name ?nick
   {
     ?x foaf:mbox ?mbox .
     OPTIONAL { ?x foaf:name  ?name } .
     OPTIONAL { ?x foaf:nick  ?nick } .
   }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/result-opt-2.ttl">data-r2/optional/result-opt-2.ttl</a></p>
<hr/>
<h2><a name="dawg-optional-complex-1">Complex optional semantics: 1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html</a></div>
<p>Complex optional: LeftJoin(LeftJoin(BGP(..),{..}),Join(BGP(..),Union(..,..)))</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/complex-data-1.ttl">data-r2/optional/complex-data-1.ttl</a></p>
<div class="query">
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .

&lt;tag:alice@example:foafUri&gt; 
    foaf:mbox   &lt;mailto:alice@example.net&gt;;
    foaf:name   &quot;Alice&quot;;
    foaf:nick   &quot;WhoMe?&quot;;
    foaf:depiction   &lt;http://example.com/alice.png&gt; .

&lt;tag:bert@example:foafUri&gt; 
    foaf:mbox   &lt;mailto:bert@example.net&gt; ;
    foaf:nick   &quot;BigB&quot; ;
    foaf:name   &quot;Bert&quot; .

&lt;tag:eve@example:foafUri&gt; 
    foaf:mbox   &lt;mailto:eve@example.net&gt; ;
    foaf:firstName   &quot;Eve&quot; .

&lt;tag:john@example:foafUri&gt;
    foaf:mbox   &lt;mailto:john@example.net&gt; ;
    foaf:nick   &quot;jDoe&quot;;
    foaf:isPrimaryTopicOf &lt;http://example.com/people/johnDoe&gt; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/q-opt-complex-1.rq">data-r2/optional/q-opt-complex-1.rq</a><br/>
<div class="query">
PREFIX  foaf:   &lt;http://xmlns.com/foaf/0.1/&gt;
SELECT ?person ?nick ?page ?img ?name ?firstN
{ 
    ?person foaf:nick ?nick
    OPTIONAL { ?person foaf:isPrimaryTopicOf ?page } 
    OPTIONAL { 
        ?person foaf:name ?name 
        { ?person foaf:depiction ?img } UNION 
        { ?person foaf:firstName ?firstN } 
    } FILTER ( bound(?page) || bound(?img) || bound(?firstN) ) 
} 
</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/result-opt-complex-1.ttl">data-r2/optional/result-opt-complex-1.ttl</a></p>
<hr/>
<h2><a name="dawg-optional-complex-2">Complex optional semantics: 2</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html</a></div>
<p>Complex optional: LeftJoin(Join(BGP(..),Graph(var,{..})),Union(..,..))</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/complex-data-2.ttl">data-r2/optional/complex-data-2.ttl</a></p>
<div class="query">
@prefix rdf:    &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix ex:        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

_:a rdf:type foaf:Person ;
    foaf:name &quot;Eve&quot; ;
    ex:empId &quot;9&quot;^^xsd:integer .
		
_:b rdf:type foaf:Person ;
    foaf:name &quot;Alice&quot; ;
    ex:empId &quot;29&quot;^^xsd:integer ;
    ex:healthplan ex:HealthPlanD.
		
_:c rdf:type foaf:Person ;
    foaf:name &quot;Fred&quot; ;
    ex:empId &quot;27&quot;^^xsd:integer .

_:e foaf:name &quot;Bob&quot; ;
    ex:empId &quot;23&quot;^^xsd:integer ;
    ex:healthplan ex:HealthPlanC.

_:f foaf:name &quot;Bob&quot; ;
    ex:empId &quot;30&quot;^^xsd:integer;
    ex:healthplan ex:HealthPlanB.

_:g rdf:type foaf:Person; 
    ex:ssn &quot;000000000&quot;;
    foaf:name   &quot;Bert&quot;;
    ex:department &quot;DeptA&quot; ;
    ex:healthplan ex:HealthPlanA.
    

</div><p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/complex-data-1.ttl">http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/complex-data-1.ttl</a></p>
<div class="query">
@prefix rdf:    &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix ex:        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

_:a rdf:type foaf:Person ;
    foaf:name &quot;Eve&quot; ;
    ex:empId &quot;9&quot;^^xsd:integer .
		
_:b rdf:type foaf:Person ;
    foaf:name &quot;Alice&quot; ;
    ex:empId &quot;29&quot;^^xsd:integer ;
    ex:healthplan ex:HealthPlanD.
		
_:c rdf:type foaf:Person ;
    foaf:name &quot;Fred&quot; ;
    ex:empId &quot;27&quot;^^xsd:integer .

_:e foaf:name &quot;Bob&quot; ;
    ex:empId &quot;23&quot;^^xsd:integer ;
    ex:healthplan ex:HealthPlanC.

_:f foaf:name &quot;Bob&quot; ;
    ex:empId &quot;30&quot;^^xsd:integer;
    ex:healthplan ex:HealthPlanB.

_:g rdf:type foaf:Person; 
    ex:ssn &quot;000000000&quot;;
    foaf:name   &quot;Bert&quot;;
    ex:department &quot;DeptA&quot; ;
    ex:healthplan ex:HealthPlanA.
    

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/q-opt-complex-2.rq">data-r2/optional/q-opt-complex-2.rq</a><br/>
<div class="query">
PREFIX  foaf:   &lt;http://xmlns.com/foaf/0.1/&gt;
PREFIX    ex:   &lt;http://example.org/things#&gt;
SELECT ?id ?ssn
WHERE 
{ 
    ?person 
        a foaf:Person;
        foaf:name ?name . 
    GRAPH ?x { 
        [] foaf:name ?name;
           foaf:nick ?nick
    } 
    OPTIONAL { 
        { ?person ex:empId ?id } UNION { ?person ex:ssn ?ssn } 
    } 
} 
</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/result-opt-complex-2.ttl">data-r2/optional/result-opt-complex-2.ttl</a></p>
<hr/>
<h2><a name="dawg-optional-complex-3">Complex optional semantics: 3</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html</a></div>
<p>Complex optional: LeftJoin(Join(BGP(..),Graph(var,{..})),LeftJoin(BGP(..),{..}))</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/complex-data-2.ttl">data-r2/optional/complex-data-2.ttl</a></p>
<div class="query">
@prefix rdf:    &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix ex:        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

_:a rdf:type foaf:Person ;
    foaf:name &quot;Eve&quot; ;
    ex:empId &quot;9&quot;^^xsd:integer .
		
_:b rdf:type foaf:Person ;
    foaf:name &quot;Alice&quot; ;
    ex:empId &quot;29&quot;^^xsd:integer ;
    ex:healthplan ex:HealthPlanD.
		
_:c rdf:type foaf:Person ;
    foaf:name &quot;Fred&quot; ;
    ex:empId &quot;27&quot;^^xsd:integer .

_:e foaf:name &quot;Bob&quot; ;
    ex:empId &quot;23&quot;^^xsd:integer ;
    ex:healthplan ex:HealthPlanC.

_:f foaf:name &quot;Bob&quot; ;
    ex:empId &quot;30&quot;^^xsd:integer;
    ex:healthplan ex:HealthPlanB.

_:g rdf:type foaf:Person; 
    ex:ssn &quot;000000000&quot;;
    foaf:name   &quot;Bert&quot;;
    ex:department &quot;DeptA&quot; ;
    ex:healthplan ex:HealthPlanA.
    

</div><p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/complex-data-1.ttl">http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/complex-data-1.ttl</a></p>
<div class="query">
@prefix rdf:    &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix ex:        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

_:a rdf:type foaf:Person ;
    foaf:name &quot;Eve&quot; ;
    ex:empId &quot;9&quot;^^xsd:integer .
		
_:b rdf:type foaf:Person ;
    foaf:name &quot;Alice&quot; ;
    ex:empId &quot;29&quot;^^xsd:integer ;
    ex:healthplan ex:HealthPlanD.
		
_:c rdf:type foaf:Person ;
    foaf:name &quot;Fred&quot; ;
    ex:empId &quot;27&quot;^^xsd:integer .

_:e foaf:name &quot;Bob&quot; ;
    ex:empId &quot;23&quot;^^xsd:integer ;
    ex:healthplan ex:HealthPlanC.

_:f foaf:name &quot;Bob&quot; ;
    ex:empId &quot;30&quot;^^xsd:integer;
    ex:healthplan ex:HealthPlanB.

_:g rdf:type foaf:Person; 
    ex:ssn &quot;000000000&quot;;
    foaf:name   &quot;Bert&quot;;
    ex:department &quot;DeptA&quot; ;
    ex:healthplan ex:HealthPlanA.
    

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/q-opt-complex-3.rq">data-r2/optional/q-opt-complex-3.rq</a><br/>
<div class="query">
PREFIX  foaf:   &lt;http://xmlns.com/foaf/0.1/&gt;
PREFIX    ex:   &lt;http://example.org/things#&gt;
SELECT ?name ?nick ?plan ?dept
WHERE 
{ 
    ?person 
        a foaf:Person;
        foaf:name ?name . 
    GRAPH ?x { 
        [] foaf:name ?name;
           foaf:nick ?nick
    } 
    OPTIONAL { 
        ?person ex:healthplan ?plan 
        OPTIONAL { ?person ex:department ?dept } 
    } 
}
</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/result-opt-complex-3.ttl">data-r2/optional/result-opt-complex-3.ttl</a></p>
<hr/>
<h2><a name="dawg-optional-complex-4">Complex optional semantics: 4</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html</a></div>
<p>Complex optional: LeftJoin(Join(BGP(..),Union(..,..)),Join(BGP(..),Graph(varOrIRI,{..})))</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/complex-data-2.ttl">data-r2/optional/complex-data-2.ttl</a></p>
<div class="query">
@prefix rdf:    &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix ex:        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

_:a rdf:type foaf:Person ;
    foaf:name &quot;Eve&quot; ;
    ex:empId &quot;9&quot;^^xsd:integer .
		
_:b rdf:type foaf:Person ;
    foaf:name &quot;Alice&quot; ;
    ex:empId &quot;29&quot;^^xsd:integer ;
    ex:healthplan ex:HealthPlanD.
		
_:c rdf:type foaf:Person ;
    foaf:name &quot;Fred&quot; ;
    ex:empId &quot;27&quot;^^xsd:integer .

_:e foaf:name &quot;Bob&quot; ;
    ex:empId &quot;23&quot;^^xsd:integer ;
    ex:healthplan ex:HealthPlanC.

_:f foaf:name &quot;Bob&quot; ;
    ex:empId &quot;30&quot;^^xsd:integer;
    ex:healthplan ex:HealthPlanB.

_:g rdf:type foaf:Person; 
    ex:ssn &quot;000000000&quot;;
    foaf:name   &quot;Bert&quot;;
    ex:department &quot;DeptA&quot; ;
    ex:healthplan ex:HealthPlanA.
    

</div><p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/complex-data-1.ttl">http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/complex-data-1.ttl</a></p>
<div class="query">
@prefix rdf:    &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix ex:        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

_:a rdf:type foaf:Person ;
    foaf:name &quot;Eve&quot; ;
    ex:empId &quot;9&quot;^^xsd:integer .
		
_:b rdf:type foaf:Person ;
    foaf:name &quot;Alice&quot; ;
    ex:empId &quot;29&quot;^^xsd:integer ;
    ex:healthplan ex:HealthPlanD.
		
_:c rdf:type foaf:Person ;
    foaf:name &quot;Fred&quot; ;
    ex:empId &quot;27&quot;^^xsd:integer .

_:e foaf:name &quot;Bob&quot; ;
    ex:empId &quot;23&quot;^^xsd:integer ;
    ex:healthplan ex:HealthPlanC.

_:f foaf:name &quot;Bob&quot; ;
    ex:empId &quot;30&quot;^^xsd:integer;
    ex:healthplan ex:HealthPlanB.

_:g rdf:type foaf:Person; 
    ex:ssn &quot;000000000&quot;;
    foaf:name   &quot;Bert&quot;;
    ex:department &quot;DeptA&quot; ;
    ex:healthplan ex:HealthPlanA.
    

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/q-opt-complex-4.rq">data-r2/optional/q-opt-complex-4.rq</a><br/>
<div class="query">
PREFIX  foaf:   &lt;http://xmlns.com/foaf/0.1/&gt;
PREFIX    ex:   &lt;http://example.org/things#&gt;
SELECT ?name ?plan ?dept ?img 
WHERE 
{ 
    ?person foaf:name ?name  
    { ?person ex:healthplan ?plan } UNION { ?person ex:department ?dept } 
    OPTIONAL { 
        ?person a foaf:Person
        GRAPH ?g { 
            [] foaf:name ?name;
               foaf:depiction ?img 
        } 
    } 
}
</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/result-opt-complex-4.ttl">data-r2/optional/result-opt-complex-4.ttl</a></p>
<hr/>
<h2><a name="dawg-union-001">Union is not optional</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0006</a></div>
<p>Union is not optional</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/data.ttl">data-r2/optional/data.ttl</a></p>
<div class="query">
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .

_:a foaf:mbox   &lt;mailto:alice@example.net&gt; .
_:a foaf:name   &quot;Alice&quot; .
_:a foaf:nick   &quot;WhoMe?&quot; .

_:b foaf:mbox   &lt;mailto:bert@example.net&gt; .
_:b foaf:name   &quot;Bert&quot; .

_:e foaf:mbox   &lt;mailto:eve@example.net&gt; .
_:e foaf:nick   &quot;DuckSoup&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/q-opt-3.rq">data-r2/optional/q-opt-3.rq</a><br/>
<div class="query">
PREFIX  foaf:   &lt;http://xmlns.com/foaf/0.1/&gt;

SELECT ?mbox ?name
   {
     { ?x foaf:mbox ?mbox }
   UNION 
     { ?x foaf:mbox ?mbox . ?x foaf:name  ?name }
   }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/optional/result-opt-3.ttl">data-r2/optional/result-opt-3.ttl</a></p>
<hr/>
<h2><a name="dawg-regex-001">regex-query-001</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0029.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0029.html</a></div>
<p>Simple unanchored match test</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/regex/regex-data-01.ttl">data-r2/regex/regex-data-01.ttl</a></p>
<div class="query">
@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix ex: &lt;http://example.com/#&gt; .

ex:foo rdf:value &quot;abcDEFghiJKL&quot; , &quot;ABCdefGHIjkl&quot;, &quot;0123456789&quot;,
	&lt;http://example.com/uri&gt;, &quot;http://example.com/literal&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/regex/regex-query-001.rq">data-r2/regex/regex-query-001.rq</a><br/>
<div class="query">
PREFIX  rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX  ex: &lt;http://example.com/#&gt;

SELECT ?val
WHERE {
	ex:foo rdf:value ?val .
	FILTER regex(?val, &quot;GHI&quot;)
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/regex/regex-result-001.ttl">data-r2/regex/regex-result-001.ttl</a></p>
<hr/>
<h2><a name="dawg-regex-002">regex-query-002</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0029.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0029.html</a></div>
<p>Case insensitive unanchored match test</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/regex/regex-data-01.ttl">data-r2/regex/regex-data-01.ttl</a></p>
<div class="query">
@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix ex: &lt;http://example.com/#&gt; .

ex:foo rdf:value &quot;abcDEFghiJKL&quot; , &quot;ABCdefGHIjkl&quot;, &quot;0123456789&quot;,
	&lt;http://example.com/uri&gt;, &quot;http://example.com/literal&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/regex/regex-query-002.rq">data-r2/regex/regex-query-002.rq</a><br/>
<div class="query">
PREFIX  ex: &lt;http://example.com/#&gt;
PREFIX  rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;

SELECT ?val
WHERE {
	ex:foo rdf:value ?val .
	FILTER regex(?val, &quot;DeFghI&quot;, &quot;i&quot;)
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/regex/regex-result-002.ttl">data-r2/regex/regex-result-002.ttl</a></p>
<hr/>
<h2><a name="dawg-regex-003">regex-query-003</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0029.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0029.html</a></div>
<p>Use/mention test</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/regex/regex-data-01.ttl">data-r2/regex/regex-data-01.ttl</a></p>
<div class="query">
@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix ex: &lt;http://example.com/#&gt; .

ex:foo rdf:value &quot;abcDEFghiJKL&quot; , &quot;ABCdefGHIjkl&quot;, &quot;0123456789&quot;,
	&lt;http://example.com/uri&gt;, &quot;http://example.com/literal&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/regex/regex-query-003.rq">data-r2/regex/regex-query-003.rq</a><br/>
<div class="query">
PREFIX  rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX  ex:  &lt;http://example.com/#&gt;

SELECT ?val
WHERE {
	ex:foo rdf:value ?val .
	FILTER regex(?val, &quot;example\\.com&quot;)
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/regex/regex-result-003.ttl">data-r2/regex/regex-result-003.ttl</a></p>
<hr/>
<h2><a name="dawg-regex-004">regex-query-004</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0029.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007AprJun/0029.html</a></div>
<p>str()+URI test</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/regex/regex-data-01.ttl">data-r2/regex/regex-data-01.ttl</a></p>
<div class="query">
@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix ex: &lt;http://example.com/#&gt; .

ex:foo rdf:value &quot;abcDEFghiJKL&quot; , &quot;ABCdefGHIjkl&quot;, &quot;0123456789&quot;,
	&lt;http://example.com/uri&gt;, &quot;http://example.com/literal&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/regex/regex-query-004.rq">data-r2/regex/regex-query-004.rq</a><br/>
<div class="query">
PREFIX  rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX  ex: &lt;http://example.com/#&gt;
SELECT ?val
WHERE {
	ex:foo rdf:value ?val .
	FILTER regex(str(?val), &quot;example\\.com&quot;)
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/regex/regex-result-004.ttl">data-r2/regex/regex-result-004.ttl</a></p>
<hr/>
<h2><a name="limit-1">Limit 1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/data.ttl">data-r2/solution-seq/data.ttl</a></p>
<div class="query">
@prefix :  &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :num  &quot;1&quot;^^xsd:integer .
:x :num  &quot;2&quot;^^xsd:integer .
:x :num  &quot;3&quot;^^xsd:integer .
:x :num  &quot;4&quot;^^xsd:integer .
:x :num  &quot;1.5&quot;^^xsd:decimal .

:y :num  &quot;1&quot;^^xsd:integer .
:y :num  &quot;2&quot;^^xsd:integer .
:y :num  &quot;3&quot;^^xsd:integer .

:x :str  &quot;aaa&quot; .
:x :str  &quot;002&quot; .
:x :str  &quot;1&quot; .
:x :str  &quot;AAA&quot; .
:x :str  &quot;&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-01.rq">data-r2/solution-seq/slice-01.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;

SELECT ?v
WHERE { [] :num ?v }
ORDER BY ?v
LIMIT 1

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-results-01.ttl">data-r2/solution-seq/slice-results-01.ttl</a></p>
<hr/>
<h2><a name="limit-2">Limit 2</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/data.ttl">data-r2/solution-seq/data.ttl</a></p>
<div class="query">
@prefix :  &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :num  &quot;1&quot;^^xsd:integer .
:x :num  &quot;2&quot;^^xsd:integer .
:x :num  &quot;3&quot;^^xsd:integer .
:x :num  &quot;4&quot;^^xsd:integer .
:x :num  &quot;1.5&quot;^^xsd:decimal .

:y :num  &quot;1&quot;^^xsd:integer .
:y :num  &quot;2&quot;^^xsd:integer .
:y :num  &quot;3&quot;^^xsd:integer .

:x :str  &quot;aaa&quot; .
:x :str  &quot;002&quot; .
:x :str  &quot;1&quot; .
:x :str  &quot;AAA&quot; .
:x :str  &quot;&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-02.rq">data-r2/solution-seq/slice-02.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;

SELECT ?v
WHERE { [] :num ?v }
ORDER BY ?v
LIMIT 100


</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-results-02.ttl">data-r2/solution-seq/slice-results-02.ttl</a></p>
<hr/>
<h2><a name="limit-3">Limit 3</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/data.ttl">data-r2/solution-seq/data.ttl</a></p>
<div class="query">
@prefix :  &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :num  &quot;1&quot;^^xsd:integer .
:x :num  &quot;2&quot;^^xsd:integer .
:x :num  &quot;3&quot;^^xsd:integer .
:x :num  &quot;4&quot;^^xsd:integer .
:x :num  &quot;1.5&quot;^^xsd:decimal .

:y :num  &quot;1&quot;^^xsd:integer .
:y :num  &quot;2&quot;^^xsd:integer .
:y :num  &quot;3&quot;^^xsd:integer .

:x :str  &quot;aaa&quot; .
:x :str  &quot;002&quot; .
:x :str  &quot;1&quot; .
:x :str  &quot;AAA&quot; .
:x :str  &quot;&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-03.rq">data-r2/solution-seq/slice-03.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;

SELECT ?v
WHERE { [] :num ?v }
ORDER BY ?v
LIMIT 0

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-results-03.ttl">data-r2/solution-seq/slice-results-03.ttl</a></p>
<hr/>
<h2><a name="limit-4">Limit 4</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/data.ttl">data-r2/solution-seq/data.ttl</a></p>
<div class="query">
@prefix :  &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :num  &quot;1&quot;^^xsd:integer .
:x :num  &quot;2&quot;^^xsd:integer .
:x :num  &quot;3&quot;^^xsd:integer .
:x :num  &quot;4&quot;^^xsd:integer .
:x :num  &quot;1.5&quot;^^xsd:decimal .

:y :num  &quot;1&quot;^^xsd:integer .
:y :num  &quot;2&quot;^^xsd:integer .
:y :num  &quot;3&quot;^^xsd:integer .

:x :str  &quot;aaa&quot; .
:x :str  &quot;002&quot; .
:x :str  &quot;1&quot; .
:x :str  &quot;AAA&quot; .
:x :str  &quot;&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-04.rq">data-r2/solution-seq/slice-04.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;

SELECT DISTINCT ?v
WHERE { [] :num ?v }
ORDER BY ?v
LIMIT 100

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-results-04.ttl">data-r2/solution-seq/slice-results-04.ttl</a></p>
<hr/>
<h2><a name="offset-1">Offset 1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/data.ttl">data-r2/solution-seq/data.ttl</a></p>
<div class="query">
@prefix :  &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :num  &quot;1&quot;^^xsd:integer .
:x :num  &quot;2&quot;^^xsd:integer .
:x :num  &quot;3&quot;^^xsd:integer .
:x :num  &quot;4&quot;^^xsd:integer .
:x :num  &quot;1.5&quot;^^xsd:decimal .

:y :num  &quot;1&quot;^^xsd:integer .
:y :num  &quot;2&quot;^^xsd:integer .
:y :num  &quot;3&quot;^^xsd:integer .

:x :str  &quot;aaa&quot; .
:x :str  &quot;002&quot; .
:x :str  &quot;1&quot; .
:x :str  &quot;AAA&quot; .
:x :str  &quot;&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-10.rq">data-r2/solution-seq/slice-10.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;

SELECT ?v
WHERE { [] :num ?v }
ORDER BY ?v
OFFSET 1

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-results-10.ttl">data-r2/solution-seq/slice-results-10.ttl</a></p>
<hr/>
<h2><a name="offset-2">Offset 2</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/data.ttl">data-r2/solution-seq/data.ttl</a></p>
<div class="query">
@prefix :  &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :num  &quot;1&quot;^^xsd:integer .
:x :num  &quot;2&quot;^^xsd:integer .
:x :num  &quot;3&quot;^^xsd:integer .
:x :num  &quot;4&quot;^^xsd:integer .
:x :num  &quot;1.5&quot;^^xsd:decimal .

:y :num  &quot;1&quot;^^xsd:integer .
:y :num  &quot;2&quot;^^xsd:integer .
:y :num  &quot;3&quot;^^xsd:integer .

:x :str  &quot;aaa&quot; .
:x :str  &quot;002&quot; .
:x :str  &quot;1&quot; .
:x :str  &quot;AAA&quot; .
:x :str  &quot;&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-11.rq">data-r2/solution-seq/slice-11.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;

SELECT ?v
WHERE { [] :num ?v }
ORDER BY ?v
OFFSET 0

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-results-11.ttl">data-r2/solution-seq/slice-results-11.ttl</a></p>
<hr/>
<h2><a name="offset-3">Offset 3</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/data.ttl">data-r2/solution-seq/data.ttl</a></p>
<div class="query">
@prefix :  &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :num  &quot;1&quot;^^xsd:integer .
:x :num  &quot;2&quot;^^xsd:integer .
:x :num  &quot;3&quot;^^xsd:integer .
:x :num  &quot;4&quot;^^xsd:integer .
:x :num  &quot;1.5&quot;^^xsd:decimal .

:y :num  &quot;1&quot;^^xsd:integer .
:y :num  &quot;2&quot;^^xsd:integer .
:y :num  &quot;3&quot;^^xsd:integer .

:x :str  &quot;aaa&quot; .
:x :str  &quot;002&quot; .
:x :str  &quot;1&quot; .
:x :str  &quot;AAA&quot; .
:x :str  &quot;&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-12.rq">data-r2/solution-seq/slice-12.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;

SELECT ?v
WHERE { [] :num ?v }
ORDER BY ?v
OFFSET 100

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-results-12.ttl">data-r2/solution-seq/slice-results-12.ttl</a></p>
<hr/>
<h2><a name="offset-4">Offset 4</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/data.ttl">data-r2/solution-seq/data.ttl</a></p>
<div class="query">
@prefix :  &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :num  &quot;1&quot;^^xsd:integer .
:x :num  &quot;2&quot;^^xsd:integer .
:x :num  &quot;3&quot;^^xsd:integer .
:x :num  &quot;4&quot;^^xsd:integer .
:x :num  &quot;1.5&quot;^^xsd:decimal .

:y :num  &quot;1&quot;^^xsd:integer .
:y :num  &quot;2&quot;^^xsd:integer .
:y :num  &quot;3&quot;^^xsd:integer .

:x :str  &quot;aaa&quot; .
:x :str  &quot;002&quot; .
:x :str  &quot;1&quot; .
:x :str  &quot;AAA&quot; .
:x :str  &quot;&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-13.rq">data-r2/solution-seq/slice-13.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;

SELECT DISTINCT ?v
WHERE { [] :num ?v }
ORDER BY ?v
OFFSET 2

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-results-13.ttl">data-r2/solution-seq/slice-results-13.ttl</a></p>
<hr/>
<h2><a name="slice-1">Slice 1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/data.ttl">data-r2/solution-seq/data.ttl</a></p>
<div class="query">
@prefix :  &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :num  &quot;1&quot;^^xsd:integer .
:x :num  &quot;2&quot;^^xsd:integer .
:x :num  &quot;3&quot;^^xsd:integer .
:x :num  &quot;4&quot;^^xsd:integer .
:x :num  &quot;1.5&quot;^^xsd:decimal .

:y :num  &quot;1&quot;^^xsd:integer .
:y :num  &quot;2&quot;^^xsd:integer .
:y :num  &quot;3&quot;^^xsd:integer .

:x :str  &quot;aaa&quot; .
:x :str  &quot;002&quot; .
:x :str  &quot;1&quot; .
:x :str  &quot;AAA&quot; .
:x :str  &quot;&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-20.rq">data-r2/solution-seq/slice-20.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;

SELECT ?v
WHERE { [] :num ?v }
ORDER BY ?v
LIMIT 1
OFFSET 1


</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-results-20.ttl">data-r2/solution-seq/slice-results-20.ttl</a></p>
<hr/>
<h2><a name="slice-2">Slice 2</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/data.ttl">data-r2/solution-seq/data.ttl</a></p>
<div class="query">
@prefix :  &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :num  &quot;1&quot;^^xsd:integer .
:x :num  &quot;2&quot;^^xsd:integer .
:x :num  &quot;3&quot;^^xsd:integer .
:x :num  &quot;4&quot;^^xsd:integer .
:x :num  &quot;1.5&quot;^^xsd:decimal .

:y :num  &quot;1&quot;^^xsd:integer .
:y :num  &quot;2&quot;^^xsd:integer .
:y :num  &quot;3&quot;^^xsd:integer .

:x :str  &quot;aaa&quot; .
:x :str  &quot;002&quot; .
:x :str  &quot;1&quot; .
:x :str  &quot;AAA&quot; .
:x :str  &quot;&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-21.rq">data-r2/solution-seq/slice-21.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;

SELECT ?v
WHERE { [] :num ?v }
ORDER BY ?v
OFFSET 1
LIMIT 2
</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-results-21.ttl">data-r2/solution-seq/slice-results-21.ttl</a></p>
<hr/>
<h2><a name="slice-3">Slice 3</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/data.ttl">data-r2/solution-seq/data.ttl</a></p>
<div class="query">
@prefix :  &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :num  &quot;1&quot;^^xsd:integer .
:x :num  &quot;2&quot;^^xsd:integer .
:x :num  &quot;3&quot;^^xsd:integer .
:x :num  &quot;4&quot;^^xsd:integer .
:x :num  &quot;1.5&quot;^^xsd:decimal .

:y :num  &quot;1&quot;^^xsd:integer .
:y :num  &quot;2&quot;^^xsd:integer .
:y :num  &quot;3&quot;^^xsd:integer .

:x :str  &quot;aaa&quot; .
:x :str  &quot;002&quot; .
:x :str  &quot;1&quot; .
:x :str  &quot;AAA&quot; .
:x :str  &quot;&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-22.rq">data-r2/solution-seq/slice-22.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;

SELECT ?v
WHERE { [] ?p ?v }
ORDER BY ?v
OFFSET 100
LIMIT 1
</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-results-22.ttl">data-r2/solution-seq/slice-results-22.ttl</a></p>
<hr/>
<h2><a name="slice-4">Slice 4</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/data.ttl">data-r2/solution-seq/data.ttl</a></p>
<div class="query">
@prefix :  &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :num  &quot;1&quot;^^xsd:integer .
:x :num  &quot;2&quot;^^xsd:integer .
:x :num  &quot;3&quot;^^xsd:integer .
:x :num  &quot;4&quot;^^xsd:integer .
:x :num  &quot;1.5&quot;^^xsd:decimal .

:y :num  &quot;1&quot;^^xsd:integer .
:y :num  &quot;2&quot;^^xsd:integer .
:y :num  &quot;3&quot;^^xsd:integer .

:x :str  &quot;aaa&quot; .
:x :str  &quot;002&quot; .
:x :str  &quot;1&quot; .
:x :str  &quot;AAA&quot; .
:x :str  &quot;&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-23.rq">data-r2/solution-seq/slice-23.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;

SELECT  ?v
WHERE { [] :num ?v }
ORDER BY ?v
OFFSET 2
LIMIT 5
</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-results-23.ttl">data-r2/solution-seq/slice-results-23.ttl</a></p>
<hr/>
<h2><a name="slice-5">Slice 5</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0047/31-dawg-minutes#item03</a></div>

<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/data.ttl">data-r2/solution-seq/data.ttl</a></p>
<div class="query">
@prefix :  &lt;http://example.org/ns#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:x :num  &quot;1&quot;^^xsd:integer .
:x :num  &quot;2&quot;^^xsd:integer .
:x :num  &quot;3&quot;^^xsd:integer .
:x :num  &quot;4&quot;^^xsd:integer .
:x :num  &quot;1.5&quot;^^xsd:decimal .

:y :num  &quot;1&quot;^^xsd:integer .
:y :num  &quot;2&quot;^^xsd:integer .
:y :num  &quot;3&quot;^^xsd:integer .

:x :str  &quot;aaa&quot; .
:x :str  &quot;002&quot; .
:x :str  &quot;1&quot; .
:x :str  &quot;AAA&quot; .
:x :str  &quot;&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-24.rq">data-r2/solution-seq/slice-24.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/ns#&gt;

SELECT  DISTINCT ?v
WHERE { [] :num ?v }
ORDER BY ?v
OFFSET 2
LIMIT 5

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/solution-seq/slice-results-24.ttl">data-r2/solution-seq/slice-results-24.ttl</a></p>
<hr/>
<h2><a name="dawg-sort-1">sort-1</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/26-dawg-minutes">http://www.w3.org/2007/06/26-dawg-minutes</a></div>
<p>Alphabetic sort (ascending) on untyped literals</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/data-sort-1.ttl">data-r2/sort/data-sort-1.ttl</a></p>
<div class="query">
@prefix rdf:    &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .

_:a foaf:name &quot;Eve&quot;.
_:b foaf:name &quot;Alice&quot; .
_:c foaf:name &quot;Fred&quot; .
_:e foaf:name &quot;Bob&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/query-sort-1.rq">data-r2/sort/query-sort-1.rq</a><br/>
<div class="query">
PREFIX foaf:       &lt;http://xmlns.com/foaf/0.1/&gt;
SELECT ?name
WHERE { ?x foaf:name ?name }
ORDER BY ?name

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/result-sort-1.rdf">data-r2/sort/result-sort-1.rdf</a></p>
<hr/>
<h2><a name="dawg-sort-10">sort-10</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/26-dawg-minutes">http://www.w3.org/2007/06/26-dawg-minutes</a></div>
<p>Alphabetic sort (descending) on datatyped (string) literals</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/data-sort-9.ttl">data-r2/sort/data-sort-9.ttl</a></p>
<div class="query">
@prefix rdf:    &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

_:a foaf:name &quot;Eve&quot;^^xsd:string .
_:b foaf:name &quot;Alice&quot;^^xsd:string .
_:c foaf:name &quot;Fred&quot;^^xsd:string .
_:e foaf:name &quot;Bob&quot;^^xsd:string .



</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/query-sort-10.rq">data-r2/sort/query-sort-10.rq</a><br/>
<div class="query">
PREFIX foaf:       &lt;http://xmlns.com/foaf/0.1/&gt;
SELECT ?name
WHERE { ?x foaf:name ?name }
ORDER BY DESC(?name)

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/result-sort-10.rdf">data-r2/sort/result-sort-10.rdf</a></p>
<hr/>
<h2><a name="dawg-sort-2">sort-2</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/26-dawg-minutes">http://www.w3.org/2007/06/26-dawg-minutes</a></div>
<p>Alphabetic sort (descending) on untyped literals</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/data-sort-1.ttl">data-r2/sort/data-sort-1.ttl</a></p>
<div class="query">
@prefix rdf:    &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .

_:a foaf:name &quot;Eve&quot;.
_:b foaf:name &quot;Alice&quot; .
_:c foaf:name &quot;Fred&quot; .
_:e foaf:name &quot;Bob&quot; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/query-sort-2.rq">data-r2/sort/query-sort-2.rq</a><br/>
<div class="query">
PREFIX foaf:       &lt;http://xmlns.com/foaf/0.1/&gt;
SELECT ?name
WHERE { ?x foaf:name ?name }
ORDER BY DESC(?name)

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/result-sort-2.rdf">data-r2/sort/result-sort-2.rdf</a></p>
<hr/>
<h2><a name="dawg-sort-3">sort-3</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/26-dawg-minutes">http://www.w3.org/2007/06/26-dawg-minutes</a></div>
<p>Sort on (possibly unbound) URIs</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/data-sort-3.ttl">data-r2/sort/data-sort-3.ttl</a></p>
<div class="query">
@prefix rdf:    &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .

_:a rdf:type foaf:Person ;
    foaf:name &quot;Eve&quot; ;
    foaf:mbox &lt;mailto:eve@work.example&gt; .
    
_:b rdf:type foaf:Person ;
    foaf:name &quot;Alice&quot; ;
    foaf:mbox &lt;mailto:alice@work.example&gt; .

_:c rdf:type foaf:Person ;
    foaf:mbox &lt;mailto:fred@work.example&gt; ;
    foaf:name &quot;Fred&quot; .

_:e foaf:name &quot;Bob&quot; .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/query-sort-3.rq">data-r2/sort/query-sort-3.rq</a><br/>
<div class="query">
PREFIX foaf:       &lt;http://xmlns.com/foaf/0.1/&gt;
SELECT ?name ?mbox
WHERE { ?x foaf:name ?name .
           OPTIONAL { ?x foaf:mbox ?mbox }
      }
ORDER BY ASC(?mbox)

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/result-sort-3.rdf">data-r2/sort/result-sort-3.rdf</a></p>
<hr/>
<h2><a name="dawg-sort-4">sort-4</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/26-dawg-minutes">http://www.w3.org/2007/06/26-dawg-minutes</a></div>
<p>Sort on datatyped (integer) literals</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/data-sort-4.ttl">data-r2/sort/data-sort-4.ttl</a></p>
<div class="query">
@prefix rdf:    &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix ex:        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

_:a rdf:type foaf:Person ;
    foaf:name &quot;Eve&quot; ;
    ex:empId &quot;9&quot;^^xsd:integer .
		
_:b rdf:type foaf:Person ;
    foaf:name &quot;Alice&quot; ;
    ex:empId &quot;29&quot;^^xsd:integer .
		
_:c rdf:type foaf:Person ;
    foaf:name &quot;Fred&quot; ;
    ex:empId &quot;27&quot;^^xsd:integer .

_:e foaf:name &quot;Bob&quot; ;
    ex:empId &quot;23&quot;^^xsd:integer .

_:f foaf:name &quot;Bob&quot; ;
    ex:empId &quot;30&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/query-sort-4.rq">data-r2/sort/query-sort-4.rq</a><br/>
<div class="query">
PREFIX foaf:       &lt;http://xmlns.com/foaf/0.1/&gt;
PREFIX ex:        &lt;http://example.org/things#&gt; 

SELECT ?name ?emp
WHERE { ?x foaf:name ?name ;
           ex:empId ?emp
      }
ORDER BY ASC(?emp)

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/result-sort-4.rdf">data-r2/sort/result-sort-4.rdf</a></p>
<hr/>
<h2><a name="dawg-sort-5">sort-5</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/26-dawg-minutes">http://www.w3.org/2007/06/26-dawg-minutes</a></div>
<p>Sort first on untyped literals (ascending), then on datatyped (integer) literals (descending</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/data-sort-4.ttl">data-r2/sort/data-sort-4.ttl</a></p>
<div class="query">
@prefix rdf:    &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix ex:        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

_:a rdf:type foaf:Person ;
    foaf:name &quot;Eve&quot; ;
    ex:empId &quot;9&quot;^^xsd:integer .
		
_:b rdf:type foaf:Person ;
    foaf:name &quot;Alice&quot; ;
    ex:empId &quot;29&quot;^^xsd:integer .
		
_:c rdf:type foaf:Person ;
    foaf:name &quot;Fred&quot; ;
    ex:empId &quot;27&quot;^^xsd:integer .

_:e foaf:name &quot;Bob&quot; ;
    ex:empId &quot;23&quot;^^xsd:integer .

_:f foaf:name &quot;Bob&quot; ;
    ex:empId &quot;30&quot;^^xsd:integer .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/query-sort-5.rq">data-r2/sort/query-sort-5.rq</a><br/>
<div class="query">
PREFIX foaf:    &lt;http://xmlns.com/foaf/0.1/&gt;
PREFIX ex:      &lt;http://example.org/things#&gt; 

SELECT ?name ?emp
WHERE { ?x foaf:name ?name ; 
           ex:empId ?emp 
      }
ORDER BY ?name DESC(?emp)

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/result-sort-5.rdf">data-r2/sort/result-sort-5.rdf</a></p>
<hr/>
<h2><a name="dawg-sort-6">sort-6</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/26-dawg-minutes">http://www.w3.org/2007/06/26-dawg-minutes</a></div>
<p>Sort on mixed result of uris and literals.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/data-sort-6.ttl">data-r2/sort/data-sort-6.ttl</a></p>
<div class="query">
@prefix rdf:    &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix ex:        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

_:a rdf:type foaf:Person ;
    foaf:name &quot;Eve&quot; ;
    ex:address &lt;http://example.org/eve&gt; .
		
_:b rdf:type foaf:Person ;
    foaf:name &quot;Alice&quot; ;
    ex:address &quot;Fascination Street 11&quot; .
		
_:c rdf:type foaf:Person ;
    foaf:name &quot;Fred&quot; ;
    ex:address &quot;fred@work.example&quot; .

_:e foaf:name &quot;Bob&quot; ;
    ex:address &lt;mailto:bob@work.example&gt; .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/query-sort-6.rq">data-r2/sort/query-sort-6.rq</a><br/>
<div class="query">
PREFIX ex:      &lt;http://example.org/things#&gt; 

SELECT ?address
WHERE { ?x ex:address ?address }
ORDER BY ASC(?address)

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/result-sort-6.rdf">data-r2/sort/result-sort-6.rdf</a></p>
<hr/>
<h2><a name="dawg-sort-7">sort-7</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/26-dawg-minutes">http://www.w3.org/2007/06/26-dawg-minutes</a></div>
<p>Sort on comparable mixed typed literals (integer and float)</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/data-sort-7.ttl">data-r2/sort/data-sort-7.ttl</a></p>
<div class="query">
@prefix rdf:    &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix ex:        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

_:a rdf:type foaf:Person ;
    foaf:name &quot;Eve&quot; ;
    ex:empId &quot;9&quot;^^xsd:integer .
                
_:b rdf:type foaf:Person ;
    foaf:name &quot;Alice&quot; ;
    ex:empId &quot;29&quot;^^xsd:integer .
                
_:c rdf:type foaf:Person ;
    foaf:name &quot;Fred&quot; ;
    ex:empId &quot;27&quot;^^xsd:integer .

_:e foaf:name &quot;Bob&quot; ;
    ex:empId &quot;23.0&quot;^^xsd:float .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/query-sort-4.rq">data-r2/sort/query-sort-4.rq</a><br/>
<div class="query">
PREFIX foaf:       &lt;http://xmlns.com/foaf/0.1/&gt;
PREFIX ex:        &lt;http://example.org/things#&gt; 

SELECT ?name ?emp
WHERE { ?x foaf:name ?name ;
           ex:empId ?emp
      }
ORDER BY ASC(?emp)

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/result-sort-7.rdf">data-r2/sort/result-sort-7.rdf</a></p>
<hr/>
<h2><a name="dawg-sort-8">sort-8</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/26-dawg-minutes">http://www.w3.org/2007/06/26-dawg-minutes</a></div>
<p>Sort on several mixed values (bnode, uri, literal)</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/data-sort-8.ttl">data-r2/sort/data-sort-8.ttl</a></p>
<div class="query">
@prefix rdf:    &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix ex:        &lt;http://example.org/things#&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

_:a foaf:name &quot;Eve&quot; ;
    ex:empId &quot;9&quot;^^xsd:integer .

_:f foaf:name &quot;John&quot; ;
    ex:empId [ ex:number &quot;29&quot;^^xsd:integer ] .

_:g foaf:name &quot;Dirk&quot; ;
    ex:empId &lt;http://example.org/dirk01&gt; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/query-sort-4.rq">data-r2/sort/query-sort-4.rq</a><br/>
<div class="query">
PREFIX foaf:       &lt;http://xmlns.com/foaf/0.1/&gt;
PREFIX ex:        &lt;http://example.org/things#&gt; 

SELECT ?name ?emp
WHERE { ?x foaf:name ?name ;
           ex:empId ?emp
      }
ORDER BY ASC(?emp)

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/result-sort-8.rdf">data-r2/sort/result-sort-8.rdf</a></p>
<hr/>
<h2><a name="dawg-sort-9">sort-9</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/06/26-dawg-minutes">http://www.w3.org/2007/06/26-dawg-minutes</a></div>
<p>Alphabetic sort (ascending) on datatyped (string) literals</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/data-sort-9.ttl">data-r2/sort/data-sort-9.ttl</a></p>
<div class="query">
@prefix rdf:    &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

_:a foaf:name &quot;Eve&quot;^^xsd:string .
_:b foaf:name &quot;Alice&quot;^^xsd:string .
_:c foaf:name &quot;Fred&quot;^^xsd:string .
_:e foaf:name &quot;Bob&quot;^^xsd:string .



</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/query-sort-9.rq">data-r2/sort/query-sort-9.rq</a><br/>
<div class="query">
PREFIX foaf:       &lt;http://xmlns.com/foaf/0.1/&gt;
SELECT ?name
WHERE { ?x foaf:name ?name }
ORDER BY ?name

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/result-sort-9.rdf">data-r2/sort/result-sort-9.rdf</a></p>
<hr/>
<h2><a name="dawg-sort-builtin">Builtin sort</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html</a></div>
<p>Sort by a builtin operator</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/data-sort-builtin.ttl">data-r2/sort/data-sort-builtin.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:s1 :p &quot;2&quot;^^xsd:integer .
:s2 :p &quot;300&quot;^^xsd:integer .
:s3 :p &quot;10&quot;^^xsd:integer .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/query-sort-builtin.rq">data-r2/sort/query-sort-builtin.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT ?s WHERE {
  ?s :p ?o .
} ORDER BY str(?o)

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/result-sort-builtin.ttl">data-r2/sort/result-sort-builtin.ttl</a></p>
<hr/>
<h2><a name="dawg-sort-function">Function sort</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html</a></div>
<p>Sort by function invocation</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/data-sort-function.ttl">data-r2/sort/data-sort-function.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/&gt; .

:s1 :p &quot;2&quot; .
:s2 :p &quot;300&quot; .
:s3 :p &quot;10&quot; .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/query-sort-function.rq">data-r2/sort/query-sort-function.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
SELECT ?s WHERE {
  ?s :p ?o .
} ORDER BY xsd:integer(?o)

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/result-sort-function.ttl">data-r2/sort/result-sort-function.ttl</a></p>
<hr/>
<h2><a name="dawg-sort-numbers">Expression sort</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html">http://lists.w3.org/Archives/Public/public-rdf-dawg/2007JulSep/att-0096/21-dawg-minutes.html</a></div>
<p>Sort by a bracketted expression</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/data-sort-numbers.ttl">data-r2/sort/data-sort-numbers.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/&gt; .
@prefix xsd:        &lt;http://www.w3.org/2001/XMLSchema#&gt; .

:s1 :p &quot;1&quot;^^xsd:integer; :q &quot;2&quot;^^xsd:integer .
:s2 :p &quot;10&quot;^^xsd:integer; :q &quot;20&quot;^^xsd:integer .
:s3 :p &quot;100&quot;^^xsd:integer; :q &quot;200&quot;^^xsd:integer .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/query-sort-numbers.rq">data-r2/sort/query-sort-numbers.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/&gt;
SELECT ?s WHERE {
  ?s :p ?o1 ; :q ?o2 .
} ORDER BY (?o1 + ?o2)

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/sort/result-sort-numbers.ttl">data-r2/sort/result-sort-numbers.ttl</a></p>
<hr/>
<h2><a name="dawg-triple-pattern-001">dawg-triple-pattern-001</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JanMar/0358">http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JanMar/0358</a></div>
<p>Simple triple match</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/triple-match/data-01.ttl">data-r2/triple-match/data-01.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/data/&gt; .

:x :p :v1 .
:x :p :v2 .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/triple-match/dawg-tp-01.rq">data-r2/triple-match/dawg-tp-01.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/data/&gt;

SELECT *
WHERE { :x ?p ?q . }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/triple-match/result-tp-01.ttl">data-r2/triple-match/result-tp-01.ttl</a></p>
<hr/>
<h2><a name="dawg-triple-pattern-002">dawg-triple-pattern-002</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JanMar/0358">http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JanMar/0358</a></div>
<p>Simple triple match</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/triple-match/data-01.ttl">data-r2/triple-match/data-01.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/data/&gt; .

:x :p :v1 .
:x :p :v2 .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/triple-match/dawg-tp-02.rq">data-r2/triple-match/dawg-tp-02.rq</a><br/>
<div class="query">
PREFIX : &lt;http://example.org/data/&gt;

SELECT *
WHERE { ?x :p ?q . }


</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/triple-match/result-tp-02.ttl">data-r2/triple-match/result-tp-02.ttl</a></p>
<hr/>
<h2><a name="dawg-triple-pattern-003">dawg-triple-pattern-003</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JanMar/0358">http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JanMar/0358</a></div>
<p>Simple triple match - repeated variable</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/triple-match/data-02.ttl">data-r2/triple-match/data-02.ttl</a></p>
<div class="query">
@prefix : &lt;http://example.org/data/&gt; .


:y :y :x .
:x :y :y .
:y :x :y .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/triple-match/dawg-tp-03.rq">data-r2/triple-match/dawg-tp-03.rq</a><br/>
<div class="query">
SELECT *
WHERE { ?a ?a ?b . }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/triple-match/result-tp-03.ttl">data-r2/triple-match/result-tp-03.ttl</a></p>
<hr/>
<h2><a name="dawg-triple-pattern-004">dawg-triple-pattern-004</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JanMar/0358">http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JanMar/0358</a></div>
<p>Simple triple match - two triples, common variable</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/triple-match/dawg-data-01.ttl">data-r2/triple-match/dawg-data-01.ttl</a></p>
<div class="query">
@prefix foaf:       &lt;http://xmlns.com/foaf/0.1/&gt; .
@prefix rdf:        &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix rdfs:	    &lt;http://www.w3.org/2000/01/rdf-schema#&gt; .

_:alice
    rdf:type        foaf:Person ;
    foaf:name       &quot;Alice&quot; ;
    foaf:mbox       &lt;mailto:alice@work&gt; ;
    foaf:knows      _:bob ;
    .

_:bob
    rdf:type        foaf:Person ;
    foaf:name       &quot;Bob&quot; ; 
    foaf:knows      _:alice ;
    foaf:mbox       &lt;mailto:bob@work&gt; ;
    foaf:mbox       &lt;mailto:bob@home&gt; ;
    .


_:eve
    rdf:type      foaf:Person ;
    foaf:name     &quot;Eve&quot; ; 
    foaf:knows    _:fred ;
    .

_:fred
    rdf:type      foaf:Person ;
    foaf:mbox     &lt;fred@edu&gt; .

</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/triple-match/dawg-tp-04.rq">data-r2/triple-match/dawg-tp-04.rq</a><br/>
<div class="query">
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; 
PREFIX  foaf:       &lt;http://xmlns.com/foaf/0.1/&gt;

SELECT ?name
WHERE {
  ?x rdf:type foaf:Person .
  ?x foaf:name ?name .
}

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/triple-match/result-tp-04.ttl">data-r2/triple-match/result-tp-04.ttl</a></p>
<hr/>
<h2><a name="type-promotion-01">tP-double-double</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-double-double.rq">data-r2/type-promotion/tP-double-double.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:double1 rdf:value ?l .
         t:double1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:double ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-02">tP-double-float</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-double-float.rq">data-r2/type-promotion/tP-double-float.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:double1 rdf:value ?l .
         t:float1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:double ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-03">tP-double-decimal</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-double-decimal.rq">data-r2/type-promotion/tP-double-decimal.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:double1 rdf:value ?l .
         t:decimal1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:double ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-04">tP-float-float</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-float-float.rq">data-r2/type-promotion/tP-float-float.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:float1 rdf:value ?l .
         t:float1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:float ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-05">tP-float-decimal</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-float-decimal.rq">data-r2/type-promotion/tP-float-decimal.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:float1 rdf:value ?l .
         t:decimal1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:float ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-06">tP-decimal-decimal</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-decimal-decimal.rq">data-r2/type-promotion/tP-decimal-decimal.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:decimal1 rdf:value ?l .
         t:decimal1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:decimal ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-07">tP-integer-short</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-integer-short.rq">data-r2/type-promotion/tP-integer-short.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:integer1 rdf:value ?l .
         t:short1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:integer ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-08">tP-nonPositiveInteger-short</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-nonPositiveInteger-short.rq">data-r2/type-promotion/tP-nonPositiveInteger-short.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:nonPositiveIntegerN1 rdf:value ?l .
         t:short1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:integer ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-09">tP-negativeInteger-short</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-negativeInteger-short.rq">data-r2/type-promotion/tP-negativeInteger-short.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:negativeIntegerN1 rdf:value ?l .
         t:short1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:integer ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-10">tP-long-short</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-long-short.rq">data-r2/type-promotion/tP-long-short.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:long1 rdf:value ?l .
         t:short1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:integer ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-11">tP-int-short</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-int-short.rq">data-r2/type-promotion/tP-int-short.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:int1 rdf:value ?l .
         t:short1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:integer ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-12">tP-short-short</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-short-short.rq">data-r2/type-promotion/tP-short-short.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:short1 rdf:value ?l .
         t:short1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:integer ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-13">tP-byte-short</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-byte-short.rq">data-r2/type-promotion/tP-byte-short.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:byte1 rdf:value ?l .
         t:short1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:integer ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-14">tP-nonNegativeInteger-short</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-nonNegativeInteger-short.rq">data-r2/type-promotion/tP-nonNegativeInteger-short.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:nonNegativeInteger1 rdf:value ?l .
         t:short1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:integer ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-15">tP-unsignedLong-short</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-unsignedLong-short.rq">data-r2/type-promotion/tP-unsignedLong-short.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:unsignedLong1 rdf:value ?l .
         t:short1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:integer ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-16">tP-unsignedInt-short</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-unsignedInt-short.rq">data-r2/type-promotion/tP-unsignedInt-short.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:unsignedInt1 rdf:value ?l .
         t:short1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:integer ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-17">tP-unsignedShort-short</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-unsignedShort-short.rq">data-r2/type-promotion/tP-unsignedShort-short.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:unsignedShort1 rdf:value ?l .
         t:short1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:integer ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-18">tP-unsignedByte-short</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-unsignedByte-short.rq">data-r2/type-promotion/tP-unsignedByte-short.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:unsignedByte1 rdf:value ?l .
         t:short1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:integer ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-19">tP-positiveInteger-short</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-positiveInteger-short.rq">data-r2/type-promotion/tP-positiveInteger-short.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:positiveInteger1 rdf:value ?l .
         t:short1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:integer ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-20">tP-short-double</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-short-double.rq">data-r2/type-promotion/tP-short-double.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:short1 rdf:value ?l .
         t:double1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:double ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-21">tP-short-float</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-short-float.rq">data-r2/type-promotion/tP-short-float.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:short1 rdf:value ?l .
         t:float1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:float ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-22">tP-short-decimal</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-short-decimal.rq">data-r2/type-promotion/tP-short-decimal.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:short1 rdf:value ?l .
         t:decimal1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:decimal ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/true.ttl">data-r2/type-promotion/true.ttl</a></p>
<hr/>
<h2><a name="type-promotion-23">tP-short-short-fail</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-short-short-fail.rq">data-r2/type-promotion/tP-short-short-fail.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:short1 rdf:value ?l .
         t:short1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:short ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/false.ttl">data-r2/type-promotion/false.ttl</a></p>
<hr/>
<h2><a name="type-promotion-24">tP-byte-short-fail</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-byte-short-fail.rq">data-r2/type-promotion/tP-byte-short-fail.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:byte1 rdf:value ?l .
         t:short1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:short ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/false.ttl">data-r2/type-promotion/false.ttl</a></p>
<hr/>
<h2><a name="type-promotion-25">tP-short-long-fail</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-short-long-fail.rq">data-r2/type-promotion/tP-short-long-fail.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:short1 rdf:value ?l .
         t:long1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:decimal ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/false.ttl">data-r2/type-promotion/false.ttl</a></p>
<hr/>
<h2><a name="type-promotion-26">tP-short-int-fail</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-short-int-fail.rq">data-r2/type-promotion/tP-short-int-fail.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:short1 rdf:value ?l .
         t:int1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:float ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/false.ttl">data-r2/type-promotion/false.ttl</a></p>
<hr/>
<h2><a name="type-promotion-27">tP-short-byte-fail</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-short-byte-fail.rq">data-r2/type-promotion/tP-short-byte-fail.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:short1 rdf:value ?l .
         t:byte1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:double ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/false.ttl">data-r2/type-promotion/false.ttl</a></p>
<hr/>
<h2><a name="type-promotion-28">tP-double-float-fail</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-double-float-fail.rq">data-r2/type-promotion/tP-double-float-fail.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:double1 rdf:value ?l .
         t:float1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:float ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/false.ttl">data-r2/type-promotion/false.ttl</a></p>
<hr/>
<h2><a name="type-promotion-29">tP-double-decimal-fail</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-double-decimal-fail.rq">data-r2/type-promotion/tP-double-decimal-fail.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:double1 rdf:value ?l .
         t:decimal1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:decimal ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/false.ttl">data-r2/type-promotion/false.ttl</a></p>
<hr/>
<h2><a name="type-promotion-30">tP-float-decimal-fail</a></h2>
Query evaluation test
<div class="approval">Approved by <a href="http://www.w3.org/2007/07/17-dawg-minutes">http://www.w3.org/2007/07/17-dawg-minutes</a></div>
<p>Positive test: product of type promotion within the xsd:decimal type tree.</p>
<h3>Default Graph</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP.ttl">data-r2/type-promotion/tP.ttl</a></p>
<div class="query">
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt; .
@prefix t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt; .

t:decimal1		rdf:value	&quot;1&quot;^^xsd:decimal .
t:float1		rdf:value	&quot;1&quot;^^xsd:float .
t:double1		rdf:value	&quot;1&quot;^^xsd:double .
t:booleanT		rdf:value	&quot;true&quot;^^xsd:boolean .
t:dateTime1		rdf:value	&quot;2005-01-14T12:34:56&quot;^^xsd:dateTime .

# types derived from xsd:decimal: 

 t:integer1		rdf:value	&quot;1&quot;^^xsd:integer .
  t:nonPositiveIntegerN1	rdf:value	&quot;-1&quot;^^xsd:nonPositiveInteger .
   t:negativeIntegerN1	rdf:value	&quot;-1&quot;^^xsd:negativeInteger .
  t:long1		rdf:value	&quot;1&quot;^^xsd:long .
   t:int1		rdf:value	&quot;1&quot;^^xsd:int .
    t:short1		rdf:value	&quot;1&quot;^^xsd:short .
     t:byte1		rdf:value	&quot;1&quot;^^xsd:byte .
  t:nonNegativeInteger1	rdf:value	&quot;1&quot;^^xsd:nonNegativeInteger .
   t:unsignedLong1	rdf:value	&quot;1&quot;^^xsd:unsignedLong .
    t:unsignedInt1	rdf:value	&quot;1&quot;^^xsd:unsignedInt .
     t:unsignedShort1	rdf:value	&quot;1&quot;^^xsd:unsignedShort .
      t:unsignedByte1	rdf:value	&quot;1&quot;^^xsd:unsignedByte .
   t:positiveInteger1	rdf:value	&quot;1&quot;^^xsd:positiveInteger .


</div>
<h3>Named Graphs</h3>

<h3>Query</h3>
<a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/tP-float-decimal-fail.rq">data-r2/type-promotion/tP-float-decimal-fail.rq</a><br/>
<div class="query">
# Positive test: product of type promotion within the xsd:decimal type tree.
# $Id: r2.html,v 1.10 2007/11/27 17:26:22 lfeigenb Exp $

PREFIX t: &lt;http://www.w3.org/2001/sw/DataAccess/tests/data/TypePromotion/tP-0#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;
ASK
 WHERE { t:float1 rdf:value ?l .
         t:decimal1 rdf:value ?r .
         FILTER ( datatype(?l + ?r) = xsd:decimal ) }

</div>
<h3>Results</h3>
<p><a href="http://www.w3.org/2001/sw/DataAccess/tests/data-r2/type-promotion/false.ttl">data-r2/type-promotion/false.ttl</a></p>
<hr/>
<pre id="license">
W3C(R) SOFTWARE NOTICE AND LICENSE
http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231

This work (and included software, documentation such as READMEs, or other
related items) is being provided by the copyright holders under the
following license. By obtaining, using and/or copying this work, you (the
licensee) agree that you have read, understood, and will comply with the
following terms and conditions.

Permission to copy, modify, and distribute this software and its
documentation, with or without modification, for any purpose and without
fee or royalty is hereby granted, provided that you include the following
on ALL copies of the software and documentation or portions thereof,
including modifications:

   1. The full text of this NOTICE in a location viewable to users of the
   redistributed or derivative work.

   2. Any pre-existing intellectual property disclaimers, notices, or terms
   and conditions. If none exist, the W3C Software Short Notice should be
   included (hypertext is preferred, text is permitted) within the body of
   any redistributed or derivative code.

   3. Notice of any changes or modifications to the files, including the
   date changes were made. (We recommend you provide URIs to the location
   from which the code is derived.)

THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS
MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR
PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE
ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.

COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
DOCUMENTATION.

The name and trademarks of copyright holders may NOT be used in advertising
or publicity pertaining to the software without specific, written prior
permission. Title to copyright in this software and any associated
documentation will at all times remain with copyright holders.  
</pre>
</body> 
</html> 
